Added a cakephp like debug function to core, NOT a method so can be called directly