- 在VSCode编辑器中安装插件PHP Debug。
- 下载Xdebug插件。
- 在php.ini中添加Xdebug扩展:
zend_extension = /yourpath/xdebug.so xdebug.remote_enable = 1 xdebug.remote_autostart= 1
- 别忘了告诉VSCode本机的PHP可执行文件的路径:
"php.executablePath": "/usr/bin/php"
zend_extension = /yourpath/xdebug.so
xdebug.remote_enable = 1
xdebug.remote_autostart= 1
"php.executablePath": "/usr/bin/php"
本文标题:Linux下使用VSCode和Xdebug调试PHP应用
本文链接:https://www.haomeiwen.com/subject/hapczxtx.html
网友评论