How does debugging in WordPress work?

Posted by Prem Tiwari | Updated on

You can enable the WordPress debugging by adding the WP_DEBUG as true in wp-config.php from your root directory.

How does debugging in WordPress work?

Open wp-config.php file from your root directory and copy paste below code. It is assumed to be false by default and is usually set to true in the wp-config.php file on development site.

Note: I am not recommended to use WP_DEBUG on any WordPress live sites; they are meant for local testing and staging installs.

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