Skip to content

Instantly share code, notes, and snippets.

@nayato
Forked from puffybsd/launch.json
Created April 5, 2018 13:55
Show Gist options
  • Save nayato/8fcd17d64a60c5e6dfe1ebd6b6ab17e9 to your computer and use it in GitHub Desktop.
Save nayato/8fcd17d64a60c5e6dfe1ebd6b6ab17e9 to your computer and use it in GitHub Desktop.
VSCode launcher for rust using lldb
{
"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