1.安装xdebug扩展:

  sudo apt-get install php-xdebug

2.找到扩展的路径:

Ubuntu php安装xdebug

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

Ubuntu php安装xdebug

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

 

相关文章:

  • 2021-08-15
  • 2021-04-08
  • 2021-10-17
  • 2021-04-21
  • 2021-12-28
  • 2021-12-29
  • 2022-01-22
  • 2021-06-01
猜你喜欢
  • 2022-12-23
  • 2021-08-09
  • 2021-11-03
  • 2022-01-14
  • 2021-06-07
  • 2021-08-24
  • 2022-01-15
相关资源
相似解决方案