Last active
April 18, 2023 16:17
-
-
Save jsturtevant/7dad6796f05f446543e248c392346e90 to your computer and use it in GitHub Desktop.
rust debugging configurations
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
{ | |
// 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 | |
} | |
] | |
} |
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": [ | |
{ | |
"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