php - 在 VS Code 中调试 PHP - “skipFiles”?
问题描述
我正在尝试在 Visual Studio Code 中调试网站(在 Chrome 中安装了 XDEBUG)。它工作正常,但让我很恼火的是我必须遍历所有文件(比如通过数据库运行的脚本等)
我看到可以在launch.json文件中使用“skipFiles”跳过某些文件,但看起来这只是为了调试Node.js,它还说“不允许使用Property skipFiles”。
{
// 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 中调试期间是否有某种方法可以跳过文件?
解决方案
好的,现在我觉得很傻 ;-) 你可以使用 F10 (Step Over) 来不跳出文件。也许有人有同样的问题,他可以读到这个。
推荐阅读
- javascript - 如何从 GitHub API 获取所有信息
- sql - 如何在 SQL 中用以前的值填充 NULL
- javascript - 角度形式值 {} 在 ts 文件中为空,但在 html 中有效
- php - 如何设置 github 操作 Laravel
- c# - 现有对象的字符串
- python - 添加 alpha(阴影)以绘制堆积条形图
- angular - Angular MSAL B2C 未获得有效负载
- java - 如何在内部 pojo 类上应用 javax 自定义验证?
- python - 如何将大列表细分为子列表并使用它们创建新列表
- cplex - 在解决方案池 Cplex 中保留唯一值