News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Run a debugger on a remote machine

Started by erezz, November 12, 2013, 03:28:25 PM

Previous topic - Next topic

erezz

I'm running c::b on Ubuntu 12.04. My app runs on a remote Linux machine. I'd like to run it with gdb via c::b. I tried to find info about it, but only found info about how to run a remote debugger from Windows to a remote machine, which is irrelevant for me.

Assuming that this is possible, I would also like to run my app with arguments.

One more thing - my project builds more than a single binary. I guess that I need to tell it somehow which binary I'd like to debug.

Can anyone help with this?

Thanks,
Erez

oBFusCATed

Quote from: erezz on November 12, 2013, 03:28:25 PM
I'm running c::b on Ubuntu 12.04. My app runs on a remote Linux machine. I'd like to run it with gdb via c::b. I tried to find info about it, but only found info about how to run a remote debugger from Windows to a remote machine, which is irrelevant for me.
Read about gdbserver and then inspect the Project->Properties -> Debugger options.

Quote from: erezz on November 12, 2013, 03:28:25 PM
Assuming that this is possible, I would also like to run my app with arguments.
Project -> set programs' arguments, but this is irrelevant for remote debugging.

Quote from: erezz on November 12, 2013, 03:28:25 PM
One more thing - my project builds more than a single binary. I guess that I need to tell it somehow which binary I'd like to debug.
Select the proper project and target and this will be used for debugging.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]