Skip to content

Instantly share code, notes, and snippets.

@hamadu
Last active August 2, 2018 13:59
Show Gist options
  • Save hamadu/e3c7eef456df7c6d928cfe215b517be3 to your computer and use it in GitHub Desktop.
Save hamadu/e3c7eef456df7c6d928cfe215b517be3 to your computer and use it in GitHub Desktop.
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