【发布时间】:2023-03-10 01:14:01
【问题描述】:
我正在尝试在 Visual Studio Code 中调试网站(在 Chrome 中安装了 XDEBUG)。它工作得很好,但让我很恼火的是我必须遍历所有文件(比如通过数据库运行的脚本等)
我看到可以在launch.json文件中使用“skipFiles”跳过某些文件,但看起来这只是为了调试Node.js,它还说“Property skipFiles is not allowed”。
{
// 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,
"skipFiles": [
"auto_prepend.php",
"application_top.php",
"database.php"
]
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
在 VS Code 中调试期间有什么方法可以跳过文件吗?
【问题讨论】:
标签: php visual-studio-code xdebug