How do you step through code line by line in Xcode?

Discussion in 'iOS Programming' started by MickeyT, May 2, 2010.

  1. MickeyT macrumors member

    Joined:
    Apr 26, 2010
    Location:
    Newcastle, United Kingdom
    #1
    Hello all

    Is there a way to step through code in Xcode? For example, in VBA the button is F8 I think - is there an equivalent where you can press a key and pass over a line of code a line at a time? I tried different "Step..." options from one of the menus but it didn't seem to do anything.

    Thanks
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Have you read the XCode Debugging Guide?

    The basic idea is to set a break point, build a debug build and run it with the debugger attached. When it hits your breakpoint the various step into options will be available.
     
  3. MickeyT thread starter macrumors member

    Joined:
    Apr 26, 2010
    Location:
    Newcastle, United Kingdom

Share This Page