debug

debug drush (and php-cli)

Drush uses the cli version of php so traditional debugging tools and functions don't work.

Firebug console error prevention

If you need to publish code that contains "console" calls (for instance console.log with firebug) and don't want javascript to be broken on browser that don't have console enabled, this function is useful:

Display errors - WSOD

The bootstrap override the values you could set to display error ad the reporting level. To be 100% sure everything is printed out when something fails in a blank screen (wsod), make index.php like this: