microsoft / microsoft/vscode-cpptools
cannot remote debug with lldb on Linux
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 6.2k
- Forks
- 1.7k
- Avg merge
- 14h 46m
- Merged PRs (30d)
- 61
Description
Hi, I'm using vscode in linux and tried to remote debug C++ program using lldb but it failed with this error:
Unable to start debugging. Unexpected LLDB output from command "-target-select remote 192.168.1.1:12345". Command 'target-select'. Error connecting to target: ''
I tried "gdb" MIMode and it worked, however whenever I set a breakpoint or stop debugging, gdb always kill my remote app. Hence, I want to use lldb instead.
FYI, I have an lldb-server running on remote side. Remote side CPU is ARM.
Here is my launch.json settings:
"name": "remote_random_bin_test_ms_lldb",
"type": "cppdbg",
"request": "launch",
"program": "test",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"environment": [],
"MIMode": "lldb",
"miDebuggerServerAddress": "192.168.1.1:12345",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the launch.json configuration and the cppdbg remote-debugging path that issues the LLDB target-select command; reproduce against the reported lldb-server on an ARM target. Done means the configuration connects successfully through LLDB and supports breakpoints and stopping without unexpectedly killing the remote application.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux, vscode
- Domain
- devtools, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100