【发布时间】:2020-12-16 15:43:41
【问题描述】:
我现在正在构建 Laravel 项目。几天前,我重新安装了操作系统(Windows 10)并重建了所有的开发环境。问题是 Xdebug 的更新版本。
使用 Xdebug 版本 2 调试后端运行良好,但我已经从 xdebug.org/wizard 下载了使用 Xdebug v3 设置的 dll 文件,并根据指南(就像我以前做过的那样)。但是我不能再调试了。
这是我的 launch.json 文件(旧版本)
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"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
}
]
}
似乎从 v2 更新了一些功能。
类似于上图。 我尝试了所有可以但找不到解决方案的案例..有人可以帮助我吗?任何建议都值得赞赏。谢谢。
【问题讨论】:
标签: php visual-studio-code xdebug