When an application throws an exception, there is debug information shown in the console – below is the output in the console for an NSInvalidArgumentException:
With a symbolic breakpoint, we can force the runtime to stop on the line of code that is generating the exception. Select the breakpoint tab (in the Project navigator) and tap the + in the lower left corner to create a new symbolic breakpoint. Enter objc_exception_throw for theSymbol as shown below:
Notice in the console the reference to obj_exception_throw and Pending breakpoint – the debugger stops before the actual line of code executed.
When you experience an exception that is not wrapped in a try/catch block, give the symbolic breakpoint a go.
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
With a symbolic breakpoint, we can force the runtime to stop on the line of code that is generating the exception. Select the breakpoint tab (in the Project navigator) and tap the + in the lower left corner to create a new symbolic breakpoint. Enter objc_exception_throw for theSymbol as shown below:
Notice in the console the reference to obj_exception_throw and Pending breakpoint – the debugger stops before the actual line of code executed.
When you experience an exception that is not wrapped in a try/catch block, give the symbolic breakpoint a go.
I guess you came to this post by searching similar kind of issues in any of the search engine and hope that this resolved your problem. If you find this tips useful, just drop a line below and share the link to others and who knows they might find it useful too.
Stay tuned to my blog, twitter or facebook to read more articles, tutorials, news, tips & tricks on various technology fields. Also Subscribe to our Newsletter with your Email ID to keep you updated on latest posts. We will send newsletter to your registered email address. We will not share your email address to anybody as we respect privacy.
[iPhone Development][iOS Development][Objective C Programming][iPhone]
No comments:
Post a Comment