Delphi #IF(DEBUG) equivalent?

Boris Callens picture Boris Callens · Sep 29, 2008 · Viewed 21k times · Source

Is there a Delphi equivalent of the C# #if(DEBUG) compiler directive?

Answer

Lasse V. Karlsen picture Lasse V. Karlsen · Sep 29, 2008

Use this:

{$IFDEF DEBUG}
...
{$ENDIF}