Skip to content

Instantly share code, notes, and snippets.

@stefthoen
Created April 8, 2013 11:28
Show Gist options
  • Save stefthoen/5336098 to your computer and use it in GitHub Desktop.
Save stefthoen/5336098 to your computer and use it in GitHub Desktop.
Add this code to wp-config.php. Now I can open any page, and if something goes wrong there, like a white screen of death, I add ?debug=debug to its URL and see what’s causing the trouble.
if ( isset($_GET['debug']) && $_GET['debug'] == 'debug')
define('WP_DEBUG', true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment