Is it possible to exclude certain files from being stepped in to in the vscode C++ debugger? I'm using gdb for debugging.
My executable is built and run remotely in a Docker container, and the host environment for VSCode does not have the standard header files instead for the Docker environment.
In particular, it's trying to step into STL code, which I'd rather exclude anyway.
Thanks
To skip files while debugging with gdb in VSCode, one could add the following section to setupCommands of launch.json :
"setupCommands": [
{
"description": "Skip library files",
"text": "-interpreter-exec console \"skip -gfi **/bits/*.h\""
}
],
This is going to skip all header files in all folders named bits. Similarly, one could type -exec skip -gfi **/bits/*.h in VSCode debug console.
Docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With