[Lazarus] How to make debugging ignore exceptions?

Sven Barth pascaldragon at googlemail.com
Sat Jun 24 12:48:43 CEST 2017


Am 24.06.2017 11:13 schrieb "Santiago A. via Lazarus" <
lazarus at lists.lazarus-ide.org>:
>
> El 24/06/2017 a las 0:14, Bo Berglund via Lazarus escribió:
> The problem is that the debugger always stops on the
> > exceptions making the debugging impossible (they happen with 10 ms
> > intervals).
> When I run into a program that raises a lot of exceptions in a loop, I
> think that I'm doing something wrong, I have missed some check or data
> sanitation in the loop. Exceptions are for exceptional cases. I mean,
> errors or unexpected cases. A case that happens each 10 ms is not an
> error or an exceptional case, it's one of the usual cases, and it must
> be handled by the natural flow of the program in a structured way.
> Raising continuously exceptions is not only an annoyance for debugging,
> but a performance problem. Exceptions may be expensive.

Well, Indy abuses Exceptions for notifications and such...

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170624/74d76c70/attachment.html>


More information about the Lazarus mailing list