在 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)