Enable debug mode

WordPress debug-mode is a excellent tool to debug your WordPress blog if something isn’t right. Add this to your wp-config.php.

To enable debug-mode, just add the parameter debug to the url.

http://example.com?debug=debug

Code Snippet:

<?php
if ( isset($_GET&#91;'debug'&#93;) && $_GET&#91;'debug'&#93; == 'debug')
  define('WP_DEBUG', true);
?>

Posted in Pure hacks