Skip to content

Instantly share code, notes, and snippets.

@hamadu

hamadu/launch.json

Last active Aug 2, 2018
Embed
What would you like to do?
VSCode Rust Debug Run
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug Run",
"sourceLanguages": [
"rust"
],
"terminal": "integrated",
"preLaunchTask": "Build single Rust file",
"program": "${workspaceRoot}/${fileBasenameNoExtension}",
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"label": "Build single Rust file",
"type": "shell",
"command": "rustc",
"args": [
"-o",
"${workspaceRoot}/${fileBasenameNoExtension}",
"-C",
"debug_assertions=yes",
"-g",
"${file}"
],
"group": "build",
"presentation": {
"reveal": "always"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.