【发布时间】:2021-05-09 07:03:31
【问题描述】:
我有一个我正在尝试调试的 Angular 项目,但是当我进行调试过程时,它会进入 @angular/core 和 ts-lib。这些是包含很多步骤的巨大文件。有没有办法跳过外部代码?
这是我的 launch.json:
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:4200/silverlakeopc",
"webRoot": "${workspaceFolder}",
"skipFiles": ["!**/node_modules/**"]
}
]
}
当我添加“skipFiles”行时,它现在会跳过我的所有代码。我只想跳过外部库。
我试过了:
【问题讨论】:
标签: angular visual-studio-code