[html] view plaincopyprint
sudo apt-get install php5-xdebug #安装命令
[html] view plaincopyprint
php -m #查看命令
第二步:在php.ini中配置xdebug扩展,在最后行加上如下代码
[html] view plaincopyprint
[xdebug] xdebug.remote_enable = 1
xdebug_remote_host = "localhost" xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp" zend_extension=/usr/lib/php5/20100525+lfs/xdebug.so
第三步:在Eclipse中配置Xdebug调试,首先菜单Window->Preferences-> PHP->Debug->Installed Debuggers->XDebug 双击搞定一切
第三步:在Eclipse中配置Xdebug调试,首先菜单Window->Preferences-> PHP->Debug->Installed Debuggers->XDebug 双击搞定一切