Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode debugger: cmd line application - start with sudo?

Tags:

xcode

macos

I need to debug a command line application with Xcode... and I need to have the debugger launch my app with 'sudo'. How do I tell Xcode to do that?

thx->adv

like image 303
kent Avatar asked Nov 13 '09 12:11

kent


1 Answers

Running XCode as root is a bad idea.

There is an option for this in XCode (6.2):

  • Product -> Scheme -> Edit Scheme
  • Select the "Run" configuration
  • Change the radio button for "Debug Process As" to "root"
like image 190
Frank Avatar answered Nov 09 '22 02:11

Frank