{$DEFINE DEBUG}
with TFileStream.Create('d:\data.json', fmCreate) do
begin
try
S := datajson.AsJSON;
WriteBuffer(S[1], Length(S));
finally
Free;
end;
end;
{$IFDEF RELEASE}
{$ENDIF}
I want to execute this code only my application is in debug mode .
how and where to define application debug or release mode