ubuntu16.04vscode+phpdebug

1.vscode 安装PHP Debug扩展;
2.php环境配置:
1.安装xdebug扩展:

  sudo apt-get install php-xdebug

    2.找到扩展的路径:
    chq@chq-Ubuntu:/usr/bin$ find /usr/ -name "xdebug.so"
    /usr/lib/php/20151012/xdebug.so

    3.编辑php.ini文件,末尾加入,保存退出:
    chq@chq-Ubuntu:/usr/bin$ find /usr/ -name "xdebug.so"
    /usr/lib/php/20151012/xdebug.so
    在php.ini后面补充:

[xdebug]
zend_extension=”/usr/lib/php/20151012/xdebug.so”
xdebug.remote_enable=1
xdebug.remote_autostart = 1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

原文链接:https://www.cnblogs.com/chq3272991/p/8349937.html
本文来源 爱码网,其版权均为 原网址 所有 与本站无关,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源。

© 版权声明

相关文章