Skip to content

Instantly share code, notes, and snippets.

@buehler
Last active September 20, 2024 15:50
Show Gist options
  • Save buehler/bbda76d8e8869f21c30b065c1c9ca5d8 to your computer and use it in GitHub Desktop.
Save buehler/bbda76d8e8869f21c30b065c1c9ca5d8 to your computer and use it in GitHub Desktop.
Debugging Rust repository in Windows with CPP Tools
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/target/debug/<APP NAME>.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"preLaunchTask": "build",
"internalConsoleOptions": "openOnSessionStart"
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"problemMatcher": ["$rustc"],
"group": {
"kind": "build",
"isDefault": false
},
"label": "build"
},
{
"type": "cargo",
"command": "check",
"problemMatcher": ["$rustc"],
"group": {
"kind": "build",
"isDefault": true
},
"label": "check"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment