• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: debugging a server app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: debugging a server app
      • From: Howard Shere <email@hidden>
References: 
 >debugging a server app (From: Howard Shere <email@hidden>)

  • Prev by Date: debugging a server app
  • Next by Date: Re: Xcode running on Intel vs PPC
  • Previous by thread: debugging a server app
  • Next by thread: Re: debugging a server app
  • Index(es):
    • Date
    • Thread