[Lazarus] Handling exceptions with debugger

Martin Frb lazarus at mfriebe.de
Wed Apr 16 05:39:01 CEST 2014

On 16/04/2014 01:32, Chris Kelling wrote:
> I installed Lazarus 1.2.0 x64. A project ran fine under 1.0.4 i386 it 
> ran fine. Under the new version the {$I-} and {$I+} ioresult coding 
> causes the debugger to stop the execution and show an exception with 
> the return code. What I need is for the debugger to ignore that and 
> let my code handle the io (i.e. I use it for checking files, paths, 
> making directories, etc).
> Is there a way to get the debugger to ignore the compiler directives?

It should have halted in 1.0.4 too. Any RunError, will cause the 
debugger to prompt, and ask break or continue.

I have made a change now, so that you can add (without quotes) 
"RunError(200)" to the exception list.

You have to add all numbers you wish to ignore, and you also have to add 
the classname of the resulting exception (since both a run error and an 
exception will be caught.

This feature is in 1.3 and 1.2.1 both SVN.
It will be in the 1.2.2 release.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20140416/79b68ee5/attachment-0003.html>

More information about the Lazarus mailing list