ubuntu上安装xdebug并与eclipse pdt联合调试

安装xdebug

引用
$sudo apt-get install  php5-dev php-pear

$sudo pecl install xdebug  ##装完后记下xdebug.so的位置

然后在php.ini里加上:

引用
zend_extension=/xxx/../xdebug.so

[xdebug]

xdebug.remote_enable=on

xdebug.remote_handler=dbgp

xdebug.remote_port=9000

配置eclipse pdt的debug

最后选择某个php页,然后右键=>debug as => php web application

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.