Debug is a project mainly written in PHP, it's free.
debug class
default, all exception and error will handled by this class. you can stop through config
// enable exception and error handler
Witty::instance('Debug');
// disable exception and error handler
Witty::instance('Debug', array('debug' => FALSE));
Debug::dump($val1, $val2, ...);