Remote Debugging

327 views
Skip to first unread message

Michael Perez

unread,
Nov 19, 2020, 5:52:49 AM11/19/20
to CodeLLDB Users
Hi,
I am new at vscode and I was looking for a way to debug my c code and it seems this is the best extension for it..
I am running the vscode in my mac and want to debug a code that runs on a device connected though Jtag...
I am able to debug using the command line and lldb but was not able to do so with the extension . 
The commands I use to debug from terminal are:
1. lldb
2. target create <full path to symbol file>
3.gdb-remote localhost:8000

When using the extension I did the following configuration:
"configurations": [
{
"name": "Remote attach",
"type": "lldb",
"request": "custom",
"targetCreateCommands": ["target create <full path to symbol file>"],
"processCreateCommands": ["gdb-remote localhost:8000"]
}

I see that the debugger is able to attched. I get the disassembly only although I tries the source remapping and the most important issue is that as soon as I perform any operation such as:
1. step over
2. add breakpoints has no effect
anything else but play, it exit with an error: Process exited with code -1. 

Can anyone please maybe help me to fix that?
Thanks!
 

Vadim

unread,
Nov 20, 2020, 1:55:51 PM11/20/20
to CodeLLDB Users
Are you able to stop on breakpoints in CLI debugger?     Your launch configuration looks correct, and should have worked the same as CLI lldb.
The only thing I am not sure about is "<full path to symbol file>": what kind of file is that?   Usually, you'd point `target` to a local copy of the binary you are running remotely.  
Please check out these instructions if you haven't already.
Reply all
Reply to author
Forward
0 new messages