Skip to content

Instantly share code, notes, and snippets.

@jsturtevant
Last active April 18, 2023 16:17
Show Gist options
  • Save jsturtevant/7dad6796f05f446543e248c392346e90 to your computer and use it in GitHub Desktop.
Save jsturtevant/7dad6796f05f446543e248c392346e90 to your computer and use it in GitHub Desktop.
rust debugging configurations
{
// 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": [
{
"name": "(skeleton) Launch",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceRoot}/target/debug/examples/skeleton.exe",
"args": [
"-namespace", "default",
"-id", "1234",
"-address", "\\\\.\\pipe\\containerd-containerd",
"-publish-binary", "./bin/containerd",
"start"
],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [
{
"name": "TTRPC_ADDRESS",
"value": "\\.\\pipe\\containerd-containerd.ttrpc"
}
],
"preLaunchTask": "skeleton",
"requireExactSource": false
},
{
"name": "(skeleton) Attach",
"type": "cppvsdbg",
"request": "attach",
"processId": "${command:pickProcess}",
"requireExactSource": false
}
]
}
{
"version": "2.0.0",
"tasks": [
{
"type": "cargo",
"command": "build",
"args": [
"--example",
"skeleton"
],
"problemMatcher": [
"$rustc"
],
"group": {
"kind": "build",
"isDefault": true
},
"label": "skeleton",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment