PHP and WordPress: Debugging
问题 I am writing some plugins and themes for WordPress, and I finding it hard to debug because somehow by the time the page has loaded, $_GET, $_POST and $_REQUEST are all empty. Even with error reporting set on, I am not getting error messages either other than a blank page whenever there is a fatal error. Is there anyway to enable a 'debug mode' for WordPress? Thanks! 回答1: Pear Debug Wordpress plugin: http://wordpress.org/extend/plugins/wp-pear-debug/ Update 4/08/2015: The above plugin hasn't