Created
February 12, 2019 07:03
-
-
Save zeux/1c3854db33358bd27c3b663e40efc53e to your computer and use it in GitHub Desktop.
Visual Studio Code launch.json for debugging with gdb via WSL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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