I'm currently trying to debug an application that is supposed run as root. As vscode run from user mode (to my knowledge) does not offer a way to attach to a binary run as root, I'm doing this by spawning an lldb-server as root (sudo lldb-server platform --server --listen localhost:7777) and then attaching to that server.
So to recap I'm trying to attach to an lldb-server running on the same machine
However when launching the debug session in vscode I get
Unfortunately I get no information what the file is that wasn't found. I'm certain that the path to the binary is correct as changing that gives me an entirely different error telling me that the binary wasn't found.
Attaching to the lldb-server via lldb from the command line does work just fine:
$ lldb
(lldb) platform select remote-linux
Platform: remote-linux
Connected: no
(lldb) platform connect connect://localhost:7777
Platform: remote-linux
Triple: aarch64-unknown-linux-gnu
OS Version: 5.4.0 (5.4.0-131-generic)
Kernel: #147-Ubuntu SMP Fri Oct 14 17:09:03 UTC 2022
Hostname: zuestoll07
Connected: yes
WorkingDir: /scratch/tgeorg/2022-bsc-nstern-report/10f10m_sync/syncN/timely-on-fpga
(lldb) file /scratch/tgeorg/2022-bsc-nstern-report/10f10m_sync/syncN/timely-on-fpga/target/debug/examples/hello_fpga
Current executable set to '/scratch/tgeorg/2022-bsc-nstern-report/10f10m_sync/syncN/timely-on-fpga/target/debug/examples/hello_fpga' (aarch64).
(lldb) run
Process 10265 launched: '/scratch/tgeorg/2022-bsc-nstern-report/10f10m_sync/syncN/timely-on-fpga/target/debug/examples/hello_fpga' (aarch64)
...
OS:
Ubuntu 20.04.5 LTS
VSCode version:1.79.2
CodeLLDB version:v1.9.2
Compiler:Rust
Debuggee:aarch64-linux-gnu
I'm currently trying to debug an application that is supposed run as root. As vscode run from user mode (to my knowledge) does not offer a way to attach to a binary run as root, I'm doing this by spawning an
lldb-server
as root (sudo lldb-server platform --server --listen localhost:7777
) and then attaching to that server.So to recap I'm trying to attach to an
lldb-server
running on the same machineI'm using the following config based on the one described here
However when launching the debug session in vscode I get
Unfortunately I get no information what the file is that wasn't found. I'm certain that the path to the binary is correct as changing that gives me an entirely different error telling me that the binary wasn't found.
Attaching to the
lldb-server
vialldb
from the command line does work just fine:Verbose log
If there's any further information I can provide, please let me know <3