安装Xdebug
wget http://xdebug.org/files/xdebug-2.2.7.tgz tar zxvf xdebug-2.2.7.tgz cd xdebug-2.2.7 phpize ./configure --enable-xdebug --with-php-confi[......]
wget http://xdebug.org/files/xdebug-2.2.7.tgz tar zxvf xdebug-2.2.7.tgz cd xdebug-2.2.7 phpize ./configure --enable-xdebug --with-php-confi[......]
在不管php.ini配置的情况下开启php调试,php debug.
在你需要调试的php文件首行中加入.
ini_set('display_errors',1); //错误信息
ini_set('display_startup_errors',1);[......]