Overview

You can enable debugging output in Prisma Client via the DEBUG environment variable. It accepts two namespaces to print debugging output:

  • prisma:engine: Prints relevant debug messages happening in a Prisma engine
  • prisma:client: Prints relevant debug messages happening in the Prisma Client runtime
  • prisma*: Prints all debug messages from Prisma Client or CLI

Setting the DEBUG environment variable

Here are examples for setting these debugging options in bash:

$# enable only `prisma:engine`-level debugging output
$export DEBUG="engine"
$
$# enable only `prisma:client`-level debugging output
$export DEBUG="prisma:client"
$
$# enable both `prisma-client`- and `engine`-level debugging output
$export DEBUG="prisma:client,prisma:engine"

If you want to enable all debugging options, you can also set DEBUG to *:

$export DEBUG="*"
Edit this page on GitHub