Skip to content

Instantly share code, notes, and snippets.

@keyle
Last active May 25, 2023 11:19
Show Gist options
  • Save keyle/50118fcbe2dd97b1798cb2432bec4f8b to your computer and use it in GitHub Desktop.
Save keyle/50118fcbe2dd97b1798cb2432bec4f8b to your computer and use it in GitHub Desktop.
Rust launch.json for VSCode macOS with LLDB (M1) using rust-analyzer
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch & Debug",
"type": "lldb",
"request": "launch",
"program": "${workspaceRoot}/target/debug/${workspaceRootFolderName}",
"args": [],
"cwd": "${workspaceRoot}"
},
{
"name": "Build & Debug",
"type": "lldb",
"request": "launch",
"cargo": {
"args": [
"build",
"--manifest-path",
"${fileDirname}/../Cargo.toml"
]
},
"cwd": "${workspaceRoot}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment