Created
November 21, 2017 04:26
-
-
Save nayato/476941cb564a791d8ed9091b9dec7c88 to your computer and use it in GitHub Desktop.
This file contains 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) Bash on Windows Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "/mnt/c/.../target/debug/examples/testapp", // path to crate root here, change executable | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "/mnt/c/.../target/debug/examples", // todo: path to crate root | |
"environment": [], | |
"externalConsole": true, | |
"pipeTransport": { | |
"pipeProgram": "C:\\Windows\\sysnative\\bash.exe", | |
"pipeArgs": [ | |
"-c" | |
], | |
"debuggerPath": "/root/.cargo/bin/rust-gdb", | |
"pipeCwd": "" | |
}, | |
"setupCommands": [ | |
{ | |
"description": "Enable pretty-printing for gdb", | |
"text": "-enable-pretty-printing", | |
"ignoreFailures": false | |
} | |
], | |
"sourceFileMap": { | |
"/mnt/c": "c:\\", | |
"/root": "c:\\Users\\myusername" // todo: put your user name (path to .cargo parent folder to be exact) | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment