[lazarus] Better proposition for debug code.

Michael A. Hess mhess at miraclec.com
Wed Jul 21 08:30:13 EDT 1999


Michael Van Canneyt wrote:
> 
> Hello,
> 
> May I remind you that the compiler supports the ASSERT() construct of Delphi;
> that you can specify a
>   AssertErrorProc
> which takes care of the asserts ?
> 
> This means that you can have the whole debug class stuff without the
> juggling with macros.
> 
> Just do a
> 
>  Assert(False,'Some debug message');

But doesn't the Assert abort the application after it is called? We want
to use the debug as a tracing feature to give us processing out of the
code as it runs. This would print the Assert line and stop. Or am I
misunderstanding how Assert is used in FPC?


-- 
==== Programming my first best destiny! ====

Michael A. Hess      Miracle Concepts, Inc.
mhess at miraclec.com   http://www.miraclec.com






More information about the Lazarus mailing list