Step by step execution in xcode?

Discussion in 'iPhone/iPad Programming' started by hajira, Aug 21, 2012.

  1. macrumors newbie

    Joined:
    Jul 25, 2012
    #1
    I m a newbie o iPhone development and I want to know "how to do step by step execution in Xcode 4.1 so that I can check the values of variables at each step"? I kept a breakpoint at the first statement.Nowwhen I run the application ctrl is not transferred to the breakpoint ?How to move to next statement and check its variable value after the breakpoint statement?
     
  2. macrumors 68000

    Reason077

    Joined:
    Aug 14, 2007
    #2
    This should work.

    Make sure your build configuration is set to "Debug" in "Manage Schemes" (should be the default for new projects).

    Make sure your breakpoint is set on a line of code that is actually executed. application:didFinishLaunchingWithOptions in your AppDelegate might be a good place to start.

    Once the breakpoint is hit, you'll see the debugger icons for step, continue, etc. Values of local variables are shown in the tree in the debugger window, or you can mouse over them in the source code.
     
  3. macrumors 603

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    The breakpoint should be blue (enabled) not gray or transparent (disabled.)
     

Share This Page