While checking links from Lance Willett‘s WordCamp San Diego talk, found reference to post by Nacin “5 Ways to Debug WordPress“, that I read while ago, where Nacin suggests using ‘all’ and ‘shutdown’ hooks for debugging. Found those methods very hand, especially ‘all’ hook, which fires for every action and filter and to quote Nacin:
You’ll be surprised how many hooks get executed on every page load. Good for troubleshooting and identifying the right hook.
Here’s code snippet you can put somewhere in you development/debugging plugin.
add_action( 'all', create_function( '', 'var_dump( current_filter() );' ) );
Lance’s talk from WordCamp San Diego – Theme Busters R Us