iOS Dev Nugget 298 Conditional Breakpoints


Need to run a code review on your codebase? Hire me

Did you know that you can set conditions for your breakpoints?

  1. Click at the gutter in Xcode editor on the line of code to set a breakpoint
  2. Ctrl-click the breakpoint and choose Edit Breakpoint
  3. Type in the condition. eg. i == 13

Conditional breakpoints will only break when it matches the condition.

Your feedback is valuable: Do you want more nuggets like this?   Yes   or   No



Like this and want such iOS dev nuggets to be emailed to you, weekly?

Sign Me Up! or follow @iosdevnuggets on Twitter


View archives of past issues