-
-
Save nayato/8fcd17d64a60c5e6dfe1ebd6b6ab17e9 to your computer and use it in GitHub Desktop.
VSCode launcher for rust using lldb
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": "Debug-LLDB", | |
"type": "lldb", | |
"request": "launch", | |
"program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}", | |
"args": [], | |
"cwd": "${workspaceRoot}", | |
"sourceLanguages": ["rust"], | |
"sourceMap":{ | |
"/checkout/src/" : "${env:HOME}/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/" | |
} | |
}, | |
{ | |
"name": "Debug-GDB", | |
"type": "gdb", | |
"request": "launch", | |
"cwd": "${workspaceRoot}", | |
"target": "${workspaceRoot}/target/debug/${workspaceRootFolderName}", | |
"printCalls": true, | |
"autorun": [ | |
"set substitute-path /checkout ${env:HOME}/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment