Skip to content

Commit

Permalink
Add debug configuration for VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
rovo89 committed Jan 18, 2025
1 parent fa44f44 commit 9b73eb7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
gcc gcc-arm-none-eabi libstdc++-arm-none-eabi-newlib \
libasio-dev iproute2 \
python3 python3-venv python3-pip \
cmake \
make
cmake make \
gdb-multiarch

USER $USERNAME
27 changes: 27 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Debug on STM32",
"type": "cppdbg",
"request": "launch",
"cwd": "${workspaceFolder}",
"program": "${workspaceFolder}/build/Debug/openmower.elf",
"postRemoteConnectCommands": [
{"text": "load"},
],
"linux": {
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb-multiarch",
"miDebuggerServerAddress": "${input:hostname}:3333"
},
}
],
"inputs": [
{
"id": "hostname",
"description": "Select OpenMower hostname",
"type": "promptString",
}
]
}

0 comments on commit 9b73eb7

Please sign in to comment.