Question
How do I enable WordPress debugging to see more detailed error messages?
Asked by: USER6798
72 Viewed
72 Answers
Answer (72)
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.