有没有办法强制Chrome调试器在步进代码时跳过特定的源文件或函数?
有没有办法强制Chrome调试器在步进代码时跳过特定的源文件或函数?
如果您正在使用VS Code中的Chrome调试扩展进行调试,您可以将以下内容添加到launch.json
文件的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": [
{
"type": "chrome",
"request": "attach",
"name": "Attach Chrome against localhost",
"url": "http://localhost:4200/**",
"webRoot": "${workspaceFolder}",
"port": 9222,
"skipFiles": [
"node_modules/**/*.js",
"runtime.js",
"polyfills.js",
"vendor.js",
"analytics.js"
]
}
]
}
.js
文件并在它们上面设置断点吗? - pixelbobby