Alex Rivera | Logout

Xcode debugger: cmd line application - start with sudo?

Asked 2009-11-13T12:05:29.310
9

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

Edit
Report

1 Answer

12

Have you tried starting Xcode with sudo?
The processes it spawns (gdb,...) should also run with superuser privileges:

sudo /Applications/Xcode.app/Contents/MacOS/Xcode
answered 2009-11-13T12:09:25.530

Your Answer