• 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: Breaking on console output?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breaking on console output?


  • Subject: Re: Breaking on console output?
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 18 Mar 2008 22:31:57 -0700


On 18 Mar '08, at 9:11 PM, Chris Meyer wrote:

In older versions of Xcode (2.5!) it used to be possible to break on console
output by putting a breakpoint on NSLog.
Is there any equivalent breakpoint to set to stop on console messages in
Xcode 3.x (or 10.5)?

Not all console output is generated by NSLog. (It has nothing to do with the version of Xcode, and it's not a recent change.)


I'm getting a message like "<Error>: CGImageSourceCreateWithData data
parameter is nil\n" Of course this bug is easy to fix if I can figure out
where it is coming from...!

For example, that line probably comes from CoreGraphics. That framework doesn't use Foundation, so it can't call NSLog. It probably used the [private] CFLog, or asl_send, or just an old-fashioned fprintf.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Breaking on console output? (From: "Chris Meyer" <email@hidden>)

  • Prev by Date: Re: What is this invisible character?
  • Next by Date: Re: Adding spaces to an NSString
  • Previous by thread: Re: Breaking on console output?
  • Next by thread: What is this invisible character?
  • Index(es):
    • Date
    • Thread