'How do I skip external files when debugging a Flutter app in VS Code? [duplicate]
- I set a breakpoint because I want to investigate what's going on.
- I step over/into
- Suddenly it goes off to a different (external) file. It's a swirl of going back and forth to different files forever and after 15 minutes I'm still not in my file and don't know what bug I have.
How can I force the debugger to stay only in my file/or potentially only in my folder?
Solution 1:[1]
In VSCode, if you want to skip over files that you don't want to debug, usually files in your node_modules etc you can add a setting to tell VSCode to skip the files when debugging, so you can make the configuration only debug your code.
You have to add a setting skipFiles to you launch configuration, i.e. launch.json
Example:
"skipFiles": [
"<node_internals>/**",
"**/app/out/vs/**"
]
You can read more about excluding the files you don't want to debug here - Skipping uninteresting code (node, chrome)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |

