Using Assert for Trace statements (was: [lazarus] Lazarus Pascal code)

Marc Weustink Marc.Weustink at cuperus.nl
Wed May 3 09:08:13 EDT 2000


> I Wrote:
> Then we are (allmost) back at the beginning. You'll have to remove
> them after debugging ;-)

+ From: Michael A. Hess [mailto:mhess at miraclec.com]
+ 
+ True you would have to remove any extra {$ASSERTIONS ON} 
+ statements but you have to do that with the writelns. 
+ But in the Trace case the Asserts are still there when 
+ you need them. The writelns need to be recoded again.

OK :) we now get at a tricky point, 
Remove 2 lines or paste "Assert(False, " over an "WriteLn("

:-) Don't get me wrong, I see the nice features of using trace.

Marc








More information about the Lazarus mailing list