Hi.

My solution was to create two project files with basically the same files
but each writing DCUs and EXEs to different directories and with different
compiler directives. This way there is no risk of mingling debug and final
units and the only price to pay is to remember to add new files to both
projects and use a little more of disk space. Though I bought Delphi 2007
some time ago, I'm just starting to use it now but plan to do something like
that.

Eduardo

On Sun, Feb 8, 2009 at 10:43 PM, Prakash Shirodkar <
prakash.shirod...@gmail.com> wrote:

>    Hello ,
>
>
>
> You can place {$D-}/ {$D+} in project source (dpr ). This will remove / add
> debug info  in exe
>
>
>
> Let me know if this has helped you.
>
>
>
> Thanks,
>
> Prakash
>
>
>
> *From:* advanced_delphi@yahoogroups.com [mailto:
> advanced_del...@yahoogroups.com] *On Behalf Of *Fahri Reza
> *Sent:* Sunday, February 08, 2009 5:53 PM
> *To:* advanced_delphi@yahoogroups.com
> *Subject:* Re: [advanced_delphi] Re: Delphi-7 setting for Debug /
> Production
>
>
>
> > ----- Original Message -----
> > From: mikcaau
> >
> > > > From: pietro
> > > >
> > > > I would like to know how and were to implement different setup for
> the
> > > > compiler and other stuff, to add/remove debug infos etc to the final
> > > > .exe
> > > >
> > > > ----- Original Message -----
> > > > From: Jeremy Grand
> > > >
> > > > Pietro, take a look at Project/Options/Compiler.
> > >
> > > don't forget to run build on the entire project with every changes to
> > > compiler-options.
> > >
> > > while we are on the subject,
> > > I really admire the simplicity of C language's makefile,
> > > in such that we can build debug and release executable in a single
> > > compile.
> > > I wonder if it is available on Delphi-X ( I forgot the name ;) ) ?
> >
> > Since all settings can be adjusted using inline compiler directives it
> > is quite simple to set a user diective to set the compiler to the
> > state that you want. This is normally done using an include file used
> > in every unit
> >
> > example
> > {Define DebugBuild)
> >
> > {IfDef DebugBuild}
> > //set debug switches
> >
> > {$Else}
> > //unset debug switches
> >
> > {$EndIf}
> >
> > Mick
>
> Is that in {$I ...} or in *uses* clause?
> Delphi doesn't check if any include file --$I-- has recently been edited,
> so if there is one in a unit, that unit's dcu-file will not be updated
> in a normal compile.
>
> This is off-topic, but I'd tried to use {$Define DEBUG} in include
> file for a simple debug checking process, in place of *assert*, and
> most of the time I forgot to run a complete build.
> The resulting dcu's got mixed up and behaves unexpectedly.
> ( bummer )
> I found that it is a lot easier??? to put {$Define DEBUG}
> on *every* units, eeuw...
> ( and one more for {$Define TEST}, that's two )
> ------------
> FIreHAzaR:-D
> West Java, Indonesia
>
>   
>

Reply via email to