[lazarus] Win32 Installer/Lazarus

Jeff Wormsley daworm at cdc.net
Tue Jul 20 17:04:11 EDT 1999


On 7/20/99, at 4:22 PM, Michael A. Hess wrote: 

>Here is what we could do.
>
>{$define DEBUGOUT:=debug.write}
>
>Then anyplace in the code put code
>
>DEBUGOUT ('whatever trace information you want');
>
>Then when you don't want debug you just need to redefine the macro to be
>
>{$define DEBUGOUT:=//}
>
>The the code becomes
>
>// ('whatever trace information you want');
>
>What does everyone think about this???

I like it, especially since even if this is done, you are free to do the following...

Procedure TMyObject.DoSomething;
Var SomeVar: Integer;
Begin
 ....
debug.write('testing');
...
end;

... so that you don't have to go changing compiler options just to debug one routine, and you don't have to see everything in the whole app either.

Jeff.







More information about the Lazarus mailing list