CodeLLDB for VSCode not working with remote gdbserver
0
votes
1
answer
3265
views
I'm currently trying to set up remote debugging on a Raspberry Pi using the CodeLLDB plugin for Visual Studio Code and gdbserver. Unfortunately this doesn't seem to work, since every breakpoint I set is greyed out and the tooltip for it reads "Resolved locations: 0".
The version of CodeLLDB is
v1.7.0
and the gdbserver says it's (Raspbian 8.2.1-2) 8.2.1
.
What makes me think that this *should* work is, that if I connect to the gdbserver manually through lldb using target create /path/to/bin
and then gdb-remote host:port
it works without a problem. The lldb version that works is 13.0.1
, while the CodeLLDB debugger says it's 14.0.0-custom
, so maybe that has something to do with it?
Anyway, the relevant part of the launch.json
looks like this:
{
"type": "lldb",
"request": "custom",
"name": "Remote executable 'bin'",
"preLaunchTask": "rust: remote ARM debug setup",
"targetCreateCommands": ["target create /path/to/bin"],
"processCreateCommands": ["gdb-remote host:port"]
}
Additional infos:
- The language I'm trying to debug is **rust**
- The binary was compiled for the target arm-unknown-linux-gnueabihf
- I'm using VSCode on **Arch Linux**
I'm posting this half to organize what I think I know, but obviously also in hope for help. Any tips would be appreciated!
Asked by ObiBabobi
(25 rep)
May 19, 2022, 08:40 PM
Last activity: May 22, 2022, 12:09 PM
Last activity: May 22, 2022, 12:09 PM