php-debug log

php-console

这个专门调试 php 的。
下载源代码,包含 src\PhpConsole\

include_once "PhpConsole/__autoload.php";

$handler = PhpConsole\Handler::getInstance();
/* You can override default Handler behavior:
$handler->setHandleErrors(false); // disable errors handling
$handler->setHandleExceptions(false); // disable exceptions handling
$handler->setCallOldHandlers(false); // disable passing errors & exceptions to prviously defined handlers */
$handler->start(); // initialize handlers

//$handler->debug('called from handler debug', 'some.three.tags');
//$array = array(
// 'test' => 1,
// 'test2' => 1,
// 'key' => array(
// 1, 2, 3, 4,
// ),
//);
//$handler->debug($array, 'test.wiki.wade.zhan');