Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

AlbuquerqueApac

macrumors member
Original poster
Hello all!

I have managed to get an App running in my iOS simulator.

However, I am getting certain exceptions for certain functions and I would like to track them down in the source code. I am getting memory segments in the debugging information, which isn't overly helpful. I have seen some info online about introducing breakpoints as (unhandled) exceptions are thrown.

Any techniques that will aid in tracking down bugs?
 
Adding an exception breakpoint, so you see where it goes wrong.. second is to turn on NSZombieEnabled so you can see where the zombies occur (the breakpoint works better)
 
You have to add it once, go to the breakpoint tab in Xcode, press the + at the bottom, click add Excpetion breakpoint.
Press -> Exception: All
Break: On Throw
ACtually click on "Click to add an action", it will say debugger command, but do "log message" there, and in the debugger command press "@exp@"
If you press done now and run, it should run a breakpoint at where exactly it should go wrong 🙂
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.