How to Debug in WordPress?

Debug in WordPress

Fortunately, WordPress comes with a nice feature named debugging that allows you to see or hide the errors when debugging mode is on.

Debug in WordPress

To start this feature in your site, you have to initially add the following code in your WordPress configuration file.

how to debugg in wordpress

You also can turn on debugging while hiding the errors on your site and saving them in a log file. To do so, you have to add only the code to your configuration settings given below.

how to debugg in wordpress

This code will create a file named debug.log inside the wp-content folder of your site and stock all debugging errors and notices inside the log file.

Debug in WordPress

This is how you can manage to debug with your WordPress site. For more clarification follow the WordPress default guide. Hopefully, this pro-tip was helpful. Find more Pro-tips here.

ninja tables pro

Sazzadul Bari

Hi, this is Sazzadul Bari, Digital Marketing Strategist at WPManageNinja. SEO content writing, outreaching, link building, and lead generation are my specializations. And when I am not drooling over WordPress plugins and updates, you'll find me enjoying sports or going through my favorite books.

Leave a Reply