Remote debugging a Linux app?
Remote debugging a Linux app?
- Subject: Remote debugging a Linux app?
- From: Patrick Coskren <email@hidden>
- Date: Fri, 14 Sep 2007 07:11:59 -0700
Hi, there.
So I'm debugging a Linux C++ app. It's a web app, so I'm working from a Mac, and I'd like to use XCode to debug, since all the Linux graphical debuggers suck, not to put too fine a point on it. I've built a custom GDB that runs on host i386-apple-darwin, and target i686-pc-linux-gnu, I've set up my SSH agent to automatically log in, I have the binary visible from both machines, and I'm able to remotely debug the Linux app by running the local GDB in a terminal window using gdbserver on the Linux box. So the fundamental technology's all in place and working.
What I'd really like to do is be able to use XCode's graphical debugger. I've got an XCode project set up that I use to edit all my source files on the server (through sshfs), but when I try to set up XCode for remote debugging, it seems like it wants to be able to build the program first. When I try to run the debugger, an error message comes up: "No launchable executable present at path". But I have the project's executable set to a custom executable I set up in the project pane, with its executable path set to the Linux executable, so that's correct. The "Debugging" tab of the executable inspector has "Debug executable remotely via SSH" checked, so I don't see why my local GDB is trying launch the executable in the first place. I've swapped out the gdb in /usr/bin, so I presume that's what XCode is using.
Any other ideas? Can I attach XCode to a GDB session that's already in progress? Am I just barking up the wrong tree? Are there other tools better suited for remote gdb debugging?
Thanks in advance for any and all suggestions.
Best regards,
-Patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden