How do you enable debug mode in WordPress?

Posted by Prem Tiwari | Updated on

In this example, we have shared how do you enable debug mode in WordPress. You can enable debug mode in WP by editing wp-config.php file and changing WP_DEBUG constant value to true.

Example: wp-config.php for Debugging

following code, inserted in your wp-config.php file, will log all errors, notices, and warnings to a file called debug.log in the wp-content directory. It will also hide the errors so they do not interrupt page generation.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers