• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSAssert Error output contains source code path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSAssert Error output contains source code path
      • From: Jaime Magiera <email@hidden>
    • Re: NSAssert Error output contains source code path
      • From: "Sean McBride" <email@hidden>
References: 
 >NSAssert Error output contains source code path (From: Jaime Magiera <email@hidden>)

  • Prev by Date: NSAssert Error output contains source code path
  • Next by Date: Re: EXC-BAD-ACCESS bug
  • Previous by thread: NSAssert Error output contains source code path
  • Next by thread: Re: NSAssert Error output contains source code path
  • Index(es):
    • Date
    • Thread