Skip to content

Instantly share code, notes, and snippets.

@petvas
Last active September 10, 2018 14:02
Show Gist options
  • Save petvas/4de4c44530acd3008751821c57b8ac97 to your computer and use it in GitHub Desktop.
Save petvas/4de4c44530acd3008751821c57b8ac97 to your computer and use it in GitHub Desktop.
rust debug in vscode:
install: RLS, C/C++
based on:
https://www.brycevandyk.com/debug-rust-on-windows-with-visual-studio-code-and-the-msvc-debugger/
C++ (Windows).
launch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"preLaunchTask": "cargo build",
"name": "(Windows) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/target/debug/${workspaceFolderBasename}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true
}
]
}
workspace settings:
"debug.allowBreakpointsEverywhere": true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment