How do I enable WordPress debugging to see more detailed error messages?

Responsive Ad Header

Question

Grade: Education Subject: Support
How do I enable WordPress debugging to see more detailed error messages?
Asked by:
72 Viewed 72 Answers

Answer (72)

Best Answer
(311)
Add the following lines to your `wp-config.php` file (before the `/* That's all, stop editing! Happy publishing. */` line): `define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true ); define( 'WP_DEBUG_DISPLAY', false );` This will log errors to `wp-content/debug.log` without displaying them on the front end.