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
- stack trace — The list of function calls that were running when an error happened, printed to help a developer find where it came from; Python calls it a traceback.
- secure by default — Designing software so the setting you get by typing nothing is the safe one, and anything riskier must be asked for by name.
Taught in
- Secure Defaults — Application Security & Threat Modeling for Engineers
- Why Secrets Leak — Application Security & Threat Modeling for Engineers