【发布时间】:2018-11-30 10:36:27
【问题描述】:
我已经使用 XDebug 向导下载了XDebug.dll,我在 php.ini 中链接了它并添加了 enable 和 autostart 行,我在VSCODE 中安装了 XDebugextension。我已经用 idekey=VSCODE 添加了系统变量 XDEBUGCONFIG。
当我使用“Listen for XDebug”开始调试时,会出现调试控制栏,但从未到达断点,并且 Step Over、Step Into、Step Out 的控件显示为灰色。
Xdebug 已安装:2.6.1
PHP 版本:7.2.12
配置文件:C:\php\php.ini
php.ini:
zend_extension = php_xdebug-2.6.1-7.2-vc15-nts-x86_64.dll
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
launch.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 windows visual-studio-code xdebug