debug a C executable with arguments

I am just starting to use Xcode to debug C projects.

To debug, I knowit suffices to put a breakpoint somewhere and "Run" (Command+R).

This works fine when the final executable takes no arguments.

But when I'm dealing with an executable that takes arguments, I do not know where to specify the arguments before launching the

debug build. There must be some special place for that in the IDE but I couldn't find it.


Any help appreciated.

Accepted Answer

You can specify arguments by editing the scheme. Product > Scheme > Edit Scheme. You want the Run action. There's an Arguments tab.

Indeed. Thank you

debug a C executable with arguments
 
 
Q