Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode Debug Shortcuts

Tags:

xcode4

How can I go step by step in Xcode while debugging with a keyboard shortcut? I'd like to make step over and step into with the keyboard, I've looked for keysheets and such but didn't find keys for that particular actions.

like image 428
Juan Alberto López Cavallotti Avatar asked Apr 24 '12 10:04

Juan Alberto López Cavallotti


People also ask

How do I debug in Xcode step by step?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

How do I run breakpoints in Xcode?

Navigate to a line in your code where you want execution to pause, then click the gutter or line number in the source editor to set a breakpoint. Xcode displays a breakpoint icon to indicate the location. Drag a breakpoint up or down to move it to another location; drag it away from the gutter to remove it.


1 Answers

This is an easy one indeed. Go to Xcode>Preferences>Key Bindings and search for 'step'. There you can define your shortcuts for each action.

PS: As @Jenn noted below "Pause/Continue" is missing from this list, which is by default bound to ⌃⌘Y (ctrl + command + Y)

XCode Key Bindings

like image 131
Alladinian Avatar answered Nov 24 '22 05:11

Alladinian