• 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: DEUG vs RELEASE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DEUG vs RELEASE


  • Subject: Re: DEUG vs RELEASE
  • From: Charles Steinman <email@hidden>
  • Date: Mon, 8 Oct 2007 14:13:14 -0700 (PDT)

--- Sandro Noel <email@hidden> wrote:

> Greetings.
>
> I want to do some console logging when i'm in debug
> mode.
> but in release, of course, none (xept errors).
>
> in delphi i used to check it like this
>
> #IFDEF DEBUG
> // do my debug related code here
> #ENDIF
>
> is there such an easy way to do it in Xcode ?

In your debug configuration, add "DEBUG=1" to the
preprocessor macros. Then you can do #ifdef debug.

Cheers,
Chuck



____________________________________________________________________________________
Be a better Globetrotter. Get better travel answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545469
_______________________________________________

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: 
 >DEUG vs RELEASE (From: Sandro Noel <email@hidden>)

  • Prev by Date: Re: DEUG vs RELEASE
  • Next by Date: Re: DEUG vs RELEASE
  • Previous by thread: Re: DEUG vs RELEASE
  • Next by thread: Core Data: rare exception
  • Index(es):
    • Date
    • Thread