Last active
August 2, 2018 13:59
-
-
Save hamadu/e3c7eef456df7c6d928cfe215b517be3 to your computer and use it in GitHub Desktop.
VSCode Rust Debug Run
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": [ | |
{ | |
"type": "lldb", | |
"request": "launch", | |
"name": "Debug Run", | |
"sourceLanguages": [ | |
"rust" | |
], | |
"terminal": "integrated", | |
"preLaunchTask": "Build single Rust file", | |
"program": "${workspaceRoot}/${fileBasenameNoExtension}", | |
"args": [], | |
"cwd": "${workspaceFolder}" | |
} | |
] | |
} |
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": "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