Skip to content

Commit

Permalink
feat(VSCode IDE): add debug button
Browse files Browse the repository at this point in the history
Allow remote debugging the software via the CodeLLDB extension and lldb-server.
  • Loading branch information
NeroReflex committed Jan 2, 2025
1 parent 90d65b2 commit 9674554
Showing 1 changed file with 78 additions and 0 deletions.
78 changes: 78 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
// 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": "Remote launch",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/target/debug/inputplumber",
"initCommands": [
"platform select remote-linux",
"platform connect connect://192.168.1.19:1234",
"settings set target.inherit-env false"
],
"env": {
"PATH": "/usr/bin:/usr/local/sbin:/usr/local/bin:/var/lib/flatpak/exports/bin:/usr/lib/rustup/bin"
}
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in library 'inputplumber'",
"cargo": {
"args": [
"test",
"--no-run",
"--lib",
"--package=inputplumber"
],
"filter": {
"name": "inputplumber",
"kind": "lib"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'inputplumber'",
"cargo": {
"args": [
"build",
"--bin=inputplumber",
"--package=inputplumber"
],
"filter": {
"name": "inputplumber",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'inputplumber'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=inputplumber",
"--package=inputplumber"
],
"filter": {
"name": "inputplumber",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}

0 comments on commit 9674554

Please sign in to comment.