How to Enable WordPress Debug Logs? (In 2 Minutes!)

Опубликовано: 05 Май 2026
на канале: TechGrill
1,040
21

In this video, you will learn how to enable WordPress Debug Logs. All you have to do is add 3 lines of code in the wp-config file. Below is the code:

To Enable WordPress Debug:

1. Gain access to the wp-config file
2. Add the code:

define( 'WP_DEBUG' , True );
define( 'WP_DEBUG_LOG' , True );
define( 'WP_DEBUG_DISPLAY ', True ); - Turn this to true or false depending on whether the site is public or a test site. More explained in the video.

3. Gain access to the log file in wp-content - debug.log file
4. Happy debugging!

If this helped, checkout my WordPress courses below:

Free WordPress Mini Course:
https://techgrill.co/?utm_medium=yt-d...

The WordPress Side Hustle, start earning with WordPress today:
https://techgrill.co/the-wordpress-si...

Follow me on twitter:
https://x.com/sidgrill/