Available for projects & agency overflow · Quick reply, from the person who does the work

What is debug mode?

Debug mode is a setting that replaces the generic error messages shown to visitors with the full technical detail: the file involved, the line number, the function at fault, sometimes the offending SQL query.

Describe my issue Send a message

A temporary diagnostic tool

On PrestaShop, this setting is controlled by the _PS_MODE_DEV_ constant in the config/defines.inc.php file. On WordPress, the equivalent is the WP_DEBUG constant defined in wp-config.php. In both cases, enabling it turns a vague error screen into a precise trace, essential for quickly locating the origin of a bug or a 500 error.

A risk if left active permanently

The information shown in debug mode (server file paths, database structure, code excerpts) is valuable to a developer, but just as valuable to an attacker. Leaving this mode active on a live site needlessly exposes technical details to any visitor and amounts to an avoidable security flaw.

Frequently asked questions

How do you enable debug mode on PrestaShop?
By changing the _PS_MODE_DEV_ constant in the config/defines.inc.php file, then setting it back to false once the diagnosis is complete.
How do you enable debug mode on WordPress?
By setting the WP_DEBUG constant to true in the wp-config.php file, optionally combined with WP_DEBUG_LOG to write errors to a file rather than displaying them on screen.
Does debug mode slow down the site?
It can slightly increase response time, but its real risk isn't performance: it's exposing sensitive technical information if left active in production.

Describe your need in one minute

A few targeted questions so I can reply with an estimate rather than another questionnaire.

contexte
plateforme (facultatif)
question (facultatif)
Please provide an email or a phone number so I can get back to you.

Please provide an email or a phone number so I can get back to you.