Ubuntu php安装xdebug

1.安装xdebug扩展:

  sudo apt-get install php-xdebug

2.找到扩展的路径:

3.编辑php.ini文件,末尾加入,保存退出:

1 [xdebug]
2 zend_extension="/usr/lib/php/20151012/xdebug.so"
3 xdebug.remote_enable=1
4 xdebug.remote_handler=dbgp 
5 xdebug.remote_mode=req
6 xdebug.remote_host=127.0.0.1 
7 xdebug.remote_port=9000

 

posted @ 2017-06-07 10:12  GoodByeZ  阅读(3535)  评论(0)    收藏  举报