Re: debugging a server app
Re: debugging a server app
- Subject: Re: debugging a server app
- From: Chris Espinosa <email@hidden>
- Date: Sun, 19 Feb 2006 22:46:42 -0800
On Feb 19, 2006, at 10:28 PM, Howard Shere wrote: I have a project which I just moved to xcode from a makefile. This is a server app with no UI. It is normally launched as a daemon and with sudo. I have everything setup in xcode to build everything to the right folders and I added the app I want to debug with custom exe so I can add my command line params to it.
One way people do this is to launch Xcode itself under sudo. Then all child processes, including gdb and your server app, will be launched with the same privileges. But I really need to launch it as sudo so it can have access to all of its data files.
Try creating a custom executable for 'sudo' with the path to your executable, and its arguments, as the argument list. But usually gdb needs to be launched under sudo as well in order to debug a sudo app. Or, if there is a way to attach the xcode debugger to a running app I can launch it normally and then attach.
Try using the "Attach" item in the Debug menu. Again, gdb usually has to be run under sudo to attach to a sudo app.
Chris
|
_______________________________________________
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