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.
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.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With