Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
222 views
in Technique[技术] by (71.8m points)

How do I skip libraries when debugging angular code in VS code

I have an angular project I am attempting to debug however, it steps into @angular/core and ts-lib when I am going through the debugging process. These are huge files with a lot of steps. Is there a way to skip external code?

this is my 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/**"]
    }
]

}

When I added the "skipFiles" line it now skips over ALL my code. I just want to skip over external libraries.

I have tried:

  1. how do I skip external code when debugging in VS Code
  2. How Do I Debug An Angular 7 Library in Visual Code
  3. How to exclude node modules and node internals from VS --debugger-- ??

Here is a screenshot of my workspace structure:
enter image description here

question from:https://stackoverflow.com/questions/66054785/how-do-i-skip-libraries-when-debugging-angular-code-in-vs-code

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...