User forums > Using Code::Blocks
Run a debugger on a remote machine
(1/1)
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.
--- End quote ---
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.
--- End quote ---
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.
--- End quote ---
Select the proper project and target and this will be used for debugging.
Navigation
[0] Message Index
Go to full version