Ubuntu13.04下配置Eclipse的Xdebug调试工具+火狐浏览器的easyXdebug组件结合

2014-11-24 03:28:44 · 作者: · 浏览: 5
第一步:安装php_xdebug扩展,并查看是否安装成功了
[html] view plaincopyprint 在CODE上查看代码片 派生到我的代码片
sudo apt-get install php5-xdebug #安装命令 [html] view plaincopyprint 在CODE上查看代码片 派生到我的代码片
php -m #查看命令
第二步:在php.ini中配置xdebug扩展,在最后行加上如下代码 [html] view plaincopyprint 在CODE上查看代码片 派生到我的代码片
[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 双击搞定一切