Re: NSAssert Error output contains source code path
Re: NSAssert Error output contains source code path
- Subject: Re: NSAssert Error output contains source code path
- From: email@hidden
- Date: Fri, 9 Mar 2007 16:14:03 -0500 (EST)
On Fri, March 9, 2007 3:35 pm, Jaime Magiera wrote:
> Hello folks,
>
> I just had something odd happen... A user of the software project I
> inherited ran into a program error. There's an NSAssert in the code
> whose result is output to console. The error shows the path of the
> class when it was compiled:
>
> *** Assertion failure in -[blahblah resizeImages], /Users/jaimelm/
> project/blablah.mm:1593
The NSLog() or whatever is printing __FILE__, which hardcodes the path of
the sourcecode into a string. That's a common debugging technique. There
is also __LINE__, as shown in the 1593.
Taybin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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