How do I make PB stop when an exception is thrown?
04/09/03 18:28
Ever had to find out who is throwing the exception that causes your app to fail, and what it is? Here's how you can set a breakpoint that's triggered whenever an exception is thrown.
When in the debugger, simply set a breakpoint on -[NSException raise]. You can e.g. do this by clicking the "console" tab in the debugger, hitting the "pause" icon and then entering
b -[NSException raise]
Thanks to Eric Albert (http://rescomp.stanford.edu/~ejalbert/) for this tip.
b -[NSException raise]
Thanks to Eric Albert (http://rescomp.stanford.edu/~ejalbert/) for this tip.