Ali*_*tun 6 typescript visual-studio-code angular
在 vs 代码编辑器中调试打字稿项目文件时如何防止进入 node_modules/*.js 文件。当我在 typecipt 文件上使用 berakpoint 启动调试过程时,我想自动跳过 node_modules 目录下的 js 文件。
// 我的launch.json
{
"version": "0.2.0",
"configurations": [ {
"name": "LaunchChrome",
"type": "chrome",
"request": "launch",
"url": "http://localhost:4200",
"sourceMaps": true,
"trace": true,
"webRoot": "${workspaceRoot}",
"userDataDir": "${workspaceRoot}/.vscode/chrome",
"runtimeArgs": [ "--disable-web-security"]
} ]
}
Run Code Online (Sandbox Code Playgroud)
t.j*_*.j. 10
将以下内容添加到您的 launch.json ...
"skipFiles": [
"${workspaceRoot}/node_modules/**/*.js"
]
Run Code Online (Sandbox Code Playgroud)
从您的问题的声音中,您可能还想排除以下内容...
"skipFiles": [
"${workspaceRoot}/node_modules/**/*.js",
"<node_internals>/**/*.js"
]
Run Code Online (Sandbox Code Playgroud)
如果您愿意,还可以排除节点内部文件(net.js、events.js 等)。
通过此处的文档
| 归档时间: |
|
| 查看次数: |
1658 次 |
| 最近记录: |