[lazarus] Better proposition for debug code.

michael at tfdec1.fys.kuleuven.ac.be michael at tfdec1.fys.kuleuven.ac.be
Wed Jul 21 10:09:40 EDT 1999




On Wed, 21 Jul 1999, Michael A. Hess wrote:

> michael at tfdec1.fys.kuleuven.ac.be wrote:
> > 
> > Correction: The default behaviour is to print the error on StdErr, and
> > then to continue the program.
> > 
> > The sysutils unit does make it an exception.
> 
> So now are you saying that it will always abort the program? Does
> modifing 'asserterrorproc' just change how or what is output and the
> exception is fired regardless or can we circumvent the exception being
> fired as well?

The exception will not be fired if you override the asserterrorproc;
sysutils sets its value to an internal procedure.

If you set its value, your procedure will be called, and no exception is
raised.

Michael.






More information about the Lazarus mailing list