How to prevent to step into node_modules

后端 未结 1 1798
南旧
南旧 2021-01-19 14:16

How to prevent to step into node_modules/*.js files when debugging the typescript project files in vs code editor. When I start a debug process with a berakpoint on my types

相关标签:
1条回答
  • 2021-01-19 14:43

    Add the following to your launch.json...

    "skipFiles": [
        "${workspaceRoot}/node_modules/**/*.js"
    ]
    

    From the sound of your question, you may also want to exclude the following...

    "skipFiles": [
        "${workspaceRoot}/node_modules/**/*.js",
        "<node_internals>/**/*.js"
    ]
    

    Which then also excludes node internal files (net.js, events.js, etc) if you wish.

    Via documentation here

    0 讨论(0)
提交回复
热议问题