Skip to content

Instantly share code, notes, and snippets.

@jessechounard
Last active April 23, 2020 18:31
Show Gist options
  • Select an option

  • Save jessechounard/7c2e5771b2bff6825dd47c671c9b1a65 to your computer and use it in GitHub Desktop.

Select an option

Save jessechounard/7c2e5771b2bff6825dd47c671c9b1a65 to your computer and use it in GitHub Desktop.
Build and debug Rust in VSCode (on Windows)
{
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"preLaunchTask": "cargo build",
}
]
}
{
"version" : "2.0.0",
"tasks": [
{
"label": "cargo build",
"type": "shell",
"command": "cargo",
"args": [
"build",
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment