Skip to content

Instantly share code, notes, and snippets.

@fimbault
Last active April 21, 2021 11:44
Show Gist options
  • Save fimbault/cc973b1d33b004c30fdfbeb36ff6ff34 to your computer and use it in GitHub Desktop.
Save fimbault/cc973b1d33b004c30fdfbeb36ff6ff34 to your computer and use it in GitHub Desktop.
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": [
/*
{
"name": "Example server",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/target/debug/examples/server",
"args": ["selfsigned"],
}*/
{
"type": "lldb",
"request": "launch",
"name": "Debug example server",
"cargo": {
"args": [
"build",
"--example",
"server"
],
"filter": {
"name": "server",
"kind": "example"
}
},
"args": ["selfsigned"],
"cwd": "${workspaceFolder}"
},
]
}
@fimbault
Copy link
Author

fimbault commented Apr 21, 2021

Example of LLDB config for rust and vscode (on OSX/linux)

  • in comments: a config that just runs the program
  • a full config that rebuilds the example with cargo build and then launches the debug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment