Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How do I do something useful with NSError in GDB
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
itsagr...@mac.com  
View profile  
 More options Feb 1, 11:22 am
From: itsagr...@mac.com
Date: Wed, 01 Feb 2012 16:22:42 +0000
Local: Wed, Feb 1 2012 11:22 am
Subject: How do I do something useful with NSError in GDB

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).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »