How to enable debugging in WordPress

| Last Updated: | In: WordPress, WordPress Beginners, WP Labs


Debugging is the important part of any programming languages. By debugging you will find out the errors and warnings in your code and you have chance to fixed that. In today’s tutorial i will explain how to enable debugging in WordPress websites.

To enable the debugging in your WordPress website, go to the root directory and open wp-config.php file. In wp-config.php file find define( 'WP_DEBUG', false ); and replace the with this code define( 'WP_DEBUG', true );.

wordpress enable debugging

Note. Don’t use the true and false values in single or double comma because they are Boolean (true/false) values.

Enable debugging using wp-config.php file

Copy paste below code in your wp-config.php for enable debugging in your WordPress website. In the below I have also added the define( 'SCRIPT_DEBUG', true ); to enable errors in the versions of core JS and CSS files (If you have made changes in the core JS&CSS files).

How to enable debugging using plugin

There are several WordPress plugin to enable debugging in your websites. Below is the some of example:

1) Query Monitor

2) Debug Bar

3) Log Deprecated Notices

Tags: , , , ,


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.


You may also like:

Follow us!

Get Free Access of 400+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...

DOWNLOAD

Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...

SEARCH NOW