debug mode

A setting that makes a service show detailed internals, such as stack traces and configuration, to help developers fix problems.

It shows internal details and sometimes secrets to anyone who triggers an error.

In more detail

Left on in production it hands attackers source code, environment variables and secrets from any broken URL. It belongs only in development, ideally with a startup check that refuses to run in production with it on.

Example

It belongs only in development, and the course makes the service refuse to start in production with debug on.

Related terms

Taught in

References