• 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: Xcode Debugger, run as root?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Xcode Debugger, run as root?


  • Subject: Re: Xcode Debugger, run as root?
  • From: Xochitl Lunde <email@hidden>
  • Date: Tue, 10 Nov 2009 11:01:22 -0600


Thanks so much!  I also found more Xcode documentation on doing this by clicking on the little "?" at the bottom of the Debugging tab of the Get Info pane on my custom executable.  I still have a problem, however.  The first time I tried enabling remote debugging, I opened the debugger and it asked me for a Passphrase.  I did not have my root account set up correctly yet, so I hit "Cancel" on the passphrase.  Now I cannot get the Debugger to ask for the passphrase again.  I have tried removing the executable and re-adding it, renaming the executable, quitting and restarting Xcode, rebooting the computer, and even making a totally new Xcode project!  I also tried using email@hidden  root@<my-ip-address> and root@localhost to get the menu to come up, but it will not come up again.  Is there some sort of "Reset Xcode" button like there is one for Safari?  I don't know what to do other than wipe and reinstall Xcode, which I am somewhat nervous to do being such a new Mac user.  How can I make it ask me for the passphrase again?

I did manage to get sharing enabled and my root keys generated.  I am able to SSH to my Mac from my PC and from the Mac's own terminal using the passphrase I created, so I think I have that setup correctly.

Xochitl

<xcode-users-bounces+xochitl_lunde=email@hidden> wrote on 11/09/2009 05:02:16 PM:

>
> Le 2009-11-09 à 14:44, Xochitl Lunde a écrit :
>
> > I am wondering if anyone can assist me in following any of Chris  
> > Miner's directions?  Does anyone know of any tutorials for  
> > configuring remote debugging?  My searches aren't yielding  
> > anything.  I am trying to get Xcode to debug a program which must  
> > run as root.
>
> It's been a while since I did this, but I believe all you have to do is:
>
> 1. Enable the root user: http://support.apple.com/kb/HT1528
>
> 2. Enable "Remote Login" (which turns on the ssh daemon) in System  
> Preferences / Sharing
>
> 3. Create a public / private key combo and install the public key in  
> the .ssh/authorized_keys folder for your root user. There are many  
> tutorials to do this (not especially centered on root user for obvious  
> security reasons). Google "ssh authorized_keys" for more info.
>
> When all this is done, you should be able to type "ssh root@localhost"  
> from your current account and get a root shell without having to enter  
> a password. That is key to get remote debugging to work.
>
> Remote debugging is usually with a remote computer (e.g. ssh  
> remoteuser@remotecomputer) but this time we're doing everything local,  
> with the root user.
>
> 4. Enable remote debugging in Xcode: Get Info on your executable, and  
> in the Debug tab check "Debug executable remotely via ssh" using  
> "root@localhost" as the "connect to:" info.
>
> Voilà!
>
> Philippe

>
 _______________________________________________
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

References: 
 >Re: Xcode Debugger, run as root? (From: Philippe Casgrain <email@hidden>)

  • Prev by Date: How to specify System Headers Directories?
  • Next by Date: build results window
  • Previous by thread: Re: Xcode Debugger, run as root?
  • Next by thread: Bundle for local html files
  • Index(es):
    • Date
    • Thread