Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Xcode is able to run the debugging application as root. For this purpose the following steps should be done:</p> <ol> <li><p>Enable the root user for local machine.</p> <p>a. Run “Directory Utility” (/System/Library/CoreServices/ Directory Utility.app)</p> <p>b. Choose “Enable Root User” from the Edit menu and enter the root password.</p></li> <li><p>Enable remote loging.</p> <p>a. In System Preferences… -> Sharing, check Remote Login. This option turns on the ssh demon.</p></li> <li><p>Create ssh public/private keys and copy public key in the .ssh/authorized_keys folder for root user.</p> <p>a. Open terminal on local machine and type <code>ssh-keygen -t rsa</code></p> <p>b. Accept the default location and type password for the root.</p> <p>c. Login as root <code>su -</code> and create ~/.ssh directory. (~ == /var/root)</p> <p>d. Copy the public key to the root: <code>cat ~/.ssh/id_rsa.pub | ssh root@localhost "cat - &gt;&gt; ~/.ssh/authorized_keys"</code></p> <p>e. Check whether everything is Ok. Type <code>ssh root@localhost</code>. It shouldn’t ask for the root password.</p></li> <li><p>Enable remote debugging via ssh in Xcode. </p> <p>a. Select «Get Info» from drop-down menu on «Executables».</p> <p>b. In the "Debugging" settings check «Debug executable remotely via ssh» and put root@localhost as the «Connect to» info.</p></li> <li><p>Everything should be Ok now ☺</p></li> </ol> <p><a href="http://stavonin.com/?p=183&amp;language=en" rel="nofollow noreferrer">From blog</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload