Skip to content

Instantly share code, notes, and snippets.

@zeux
Created February 12, 2019 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeux/1c3854db33358bd27c3b663e40efc53e to your computer and use it in GitHub Desktop.
Save zeux/1c3854db33358bd27c3b663e40efc53e to your computer and use it in GitHub Desktop.
Visual Studio Code launch.json for debugging with gdb via WSL
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "/mnt/c/work/meshoptimizer/build/debug/meshoptimizer",
"args": ["-d", "data/kitten.obj"],
"stopAtEntry": false,
"cwd": "/mnt/c/work/meshoptimizer",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "/path/to/gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"pipeTransport": {
"pipeCwd": "",
"pipeProgram": "c:\\windows\\sysnative\\bash.exe",
"pipeArgs": ["-c"],
"debuggerPath": "/usr/bin/gdb"
},
"sourceFileMap": {
"/mnt/c": "c:\\"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment