Hi all,
Ages back, Adam provided some breakpoint additions for GDB which I dutifully stored somewhere (!) and they have been active ever since. They show up when starting the debugger like so:
Pending breakpoint 2 - "+[NSError errorWithDomain:code:userInfo:]" resolved
Pending breakpoint 3 - "handleFailureInMethod:object:file:lineNumber:description:" resolved
Pending breakpoint 4 - "handleFailureInFunction:file:lineNumber:description:" resolved
Pending breakpoint 5 - "malloc_printf" resolved
Pending breakpoint 6 - "malloc_error_break" resolved
Now, for some reason (my buggy code I assume!), my app stops in the debugger with this:
I've seen lots of ways of trapping NSError in my code, but what is the point of putting a breakpoint in GDB triggered when an NSError happens? How do I interrogate it?
Also, should I still be using GDB? I have a feeling that there was some swanky new debugger in Xcode 3 but it didn't work with iOS apps - does it now work in Xcode 4? (Or was I imagining the entire thing?)
Thanks in advance for any help.
Regards,
Stephen
(still coding in Essex ...)
If emissions continue "business-as-usual", CO2 levels in the oceans will rise to a point where, by 2050, ocean acidification will reach a level considered to be industrial waste by the US’s own water quality standards (Caldeira, Archer et al, 2007) and, if unabated "has the potential to cause extinction of many marine species... What we're doing in the next decade will affect our oceans for millions of years..." (Eilperin, 2006; NASA, 2006c).