php-debug log

php-console

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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include_once "PhpConsole/__autoload.php";

$handler = PhpConsoleHandler::getInstance();

$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');