How do I enable debug mode in WordPress? Print

  • 0

Debug mode logs PHP errors so you can find what's breaking. Edit wp-config.php.

  1. In cPanel's File Manager, open wp-config.php in your WordPress root.
  2. Find define('WP_DEBUG', false); and change it to true. If the line is missing, add it above /* That's all, stop editing! */.
  3. To log errors to a file instead of showing them on screen, also add: define('WP_DEBUG_LOG', true); and define('WP_DEBUG_DISPLAY', false);

Errors are then written to wp-content/debug.log, which you can read in File Manager. Turn debugging back off (false) once you're done, as displaying errors publicly is a security risk. Need help reading the log? Open a ticket and include the relevant lines.


Was this answer helpful?

« Back