
Debug mode is useful while developing and dangerous in production. Debug pages, stack traces and detailed error messages show attackers your code paths, library versions, file locations and sometimes credentials.
A framework's debug flag is left on after deployment, or an unhandled exception shows the full stack trace. Some debug consoles even allow running code directly on the server.
phpinfo.php.phpinfo pages and error messages that reveal file paths or database details.Stack traces reveal file paths, library versions and code structure, which helps attackers target other weaknesses.
Set it in production configuration, verify it in your deployment pipeline, and scan the live site regularly.
Try Vooki Pro free for 7 days
Make sure your production site is not in debug mode. The trial unlocks every feature for 7 days, and scanning runs on your own machine.
Related: Securing OAuth, OpenID Connect and SAML single sign-on · Locking down admin panels and management endpoints