If you want to make sure that your variables must be defined in a certain way at a certain point, for which statements ( NSAssert()
for example).
If you just want to know when a variable changes, use a watchpoint, not a breakpoint. (Click on the variable in the debugger and select "Watch.")
If you want to check a variable at a specific point and break it up only if it is “something in particular”, use a conditional breakpoint. Right-click on the breakpoint in xcode and select Change Breakpoint. You can also use this to break them up so often (for example, after 100 fires).
If you just want to know when the line of code is reached, but does not stop there, use the "Sound" action in the "Edit breakpoint" window and then "Continue automatically after evaluating actions". I use this quite a lot in performance. When I hear this starts to buzz, I know that I found the code in the code.
Did you have anything else in mind?
source share