Debug C++ in Visual Studio Code
https://code.visualstudio.com/docs/cpp/cpp-debugThe C/C++ extension for VS Code also has the ability to debug memory dumps. To debug a memory dump, open your launch.json file and add the coreDumpPath (for GDB or LLDB) or dumpPath (for the Visual Studio Windows Debugger) property to the C++ Launch configuration, set its value to be a string containing the path to the memory dump.
Debugging in Visual Studio Code
code.visualstudio.com › Docs › editorCreate and run an "attach" debug configuration that attaches to the debug target. If the debugger extension you are using can run the debug target in VS Code's Integrated Terminal (or an external terminal), you can try to pass the shell redirect syntax (for example, "<" or ">") as arguments. Here's an example launch.json configuration: