is there a way to set the debugger on a set so that if the variable generates an error (e.g. an array being out of bounds), one is given the line number where this is happening?
I am looking specifically for instructions on how to do this in Xcode 3.
Thanks a lot.
You need to add a global “On Throw” exception breakpoint. If you open the break points window you should be able to add one, although I can’t remember the exact steps in Xcode 3.
Once you have this turned on, the debugger will stop exactly where the exception is generated. This usually helps when an exception is being passed through a
performSelectorinvocation and the stack trace is lost.