How Can We Help?
Set WP_DEBUG to true
WARNING: Enabling this setting may change runtime behavior and may expose debugging output depending on the site’s broader WordPress debug configuration. Confirm that enabling debug mode is appropriate for the environment before saving the change.
Description of the control
This control sets the desired value of WP_DEBUG in the wp-config Hardening section of the Core Hardening page. It is presented as a single checkbox labeled Set WP_DEBUG to true.
Use this control when WordPress debug mode should be enabled through the WP_DEBUG constant in wp-config.php.
Procedure
- In WordPress admin, open Posture Management.
- Select Core Hardening.
- In the wp-config Hardening section, review the detected
wp-config.phppath and current file status. - Click Check wp-config.php permissions if you need to verify writability.
- Select Set WP_DEBUG to true.
- Click Save changes.
Validation
After saving, reload Posture Management -> Core Hardening and confirm that Set WP_DEBUG to true remains selected.
Then verify that the site’s behavior matches the intended debug posture for the target environment.
