The usual solution for this is doing like this: {$ifdef Debug} {$apptype console} {$endif} {$ifdef Debug} WriteLn(....); {$endif} If you want to see the writelns you build with Debug defined. -- Felipe Monteiro de Carvalho