Re: DEUG vs RELEASE
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