Debugging & troubleshooting
Get query insights and analytics with Prisma Optimize
Prisma Optimize helps you generate insights and provides recommendations that can help you make your database queries faster:
Optimize aims to help developers of all skill levels write efficient database queries, reducing database load and making applications more responsive.
In this section
Debugging
You can enable debugging output in Prisma Client and Prisma CLI via the DEBUG environment variable. It accepts two namespaces to print debugging output:
Handling exceptions and errors
In order to handle different types of errors you can use instanceof to check what the error is and handle it accordingly.