iPhone 3.0 Debugging made easier

Nice addition there. When an exception is thrown, in the simulator (didn’t try on the device), objc_exception_throw now calls __TERMINATING_DUE_TO_UNCAUGHT_EXCEPTION__ directly.

What this means is that you don’t have a start fiddling with GCC prompts to get to the exact point the exception was thrown. In 2.2.1 and before, the exception was genuinely thrown and caught in the main loop, and you did lost your stack.

This is really useful when sending messages to objects that don’t handle them, since you can get up the stack and look at what happened exactly.

Anyone has seen other major improvements to debugging in the 3.0 beta-world?

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • LinkedIn
  • Print
  • Reddit
  • StumbleUpon
  • Technorati
  • TwitThis
  • Wikio

Comments (1)

ManoloApril 10th, 2009 at 7:29 am

info symbol is your friend

Leave a comment

Your comment