【发布时间】:2020-03-29 10:49:05
【问题描述】:
在 ubuntu 19.10 上工作并尝试开始在 VScode 中调试我的代码,但在安装扩展程序后 - 没有任何效果(按钮被禁用)。
使用php7.3,在php.ini中添加了几行:
zend_extension=/usr/lib/php/20180731/xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_port=9000`
已安装 apache2,但现在使用内置 Web 服务器 我的 php.ini 配置也看到了我添加的参数。 VScode 自己制作的 .json 文件是:
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]}
【问题讨论】:
标签: php ubuntu visual-studio-code xdebug