Skip to content

Instantly share code, notes, and snippets.

@mengwangk
Last active December 16, 2020 07:05
Show Gist options
  • Save mengwangk/f818e5c924b3240197d70dc7ae68651a to your computer and use it in GitHub Desktop.
Save mengwangk/f818e5c924b3240197d70dc7ae68651a to your computer and use it in GitHub Desktop.
launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'hello-world'",
"cargo": {
"args": [
"build",
"--bin=hello-world",
"--package=hello-world"
],
"filter": {
"name": "hello-world",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'hello-world'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=hello-world",
"--package=hello-world"
],
"filter": {
"name": "hello-world",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment