Diagnosing NSString error in Leopard
Diagnosing NSString error in Leopard
- Subject: Diagnosing NSString error in Leopard
- From: John Stiles <email@hidden>
- Date: Wed, 05 Dec 2007 13:17:52 -0800
I noticed that my app was printing the following warning to the Xcode
debugger console:
*** -[NSCFString replaceCharactersInRange:withString:]: nil argument
I found reproducible steps for the problem, but I'm not sure where in
the code this is happening.
So I set a breakpoint on NSLog, thinking that I could catch it in the
act. This didn't give me much assistance, unfortunately:
#0 0x953d9fd6 in NSLog
#1 0x9127ecc8 in _NSDefaultTopLevelErrorHandler
#2 0x910755ca in -[NSApplication run]
#3 0x00d9d580 in /my application/
Apparently the logging has been deferred for some reason.
What would be a good way to get the debugger to stop when this error
actually occurs?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden