Is there a way to disable Delphi's "Debugger Exception Notification"?

3

I would like to disable the function from which the debugger notifies me of an Exception in a code snippet.

Example:

try
   Text := CurrToStrF('Erro', ffNumber, 2);
except
   Text := '0,00';
end;

While debugging the above code on some occasions, the exception is thrown and debugging pauses by displaying a message on the screen.

However, since I know that it will throw the exception, I wanted delphi to ignore the exceptions only in that part.

Are there any directives (or other means) that would warn the debugger not to stop?

I'm using Delphi 2009

    
asked by anonymous 14.02.2014 / 20:04

2 answers

2

It's possible, yes.

Place a Breakpoint at the point where you do not want the debugger to notify you of any new exceptions.

Right click on it and select% with% click on% with% uncheck% with% and check% with%.

Then put a Breakpoint properties at the point where you want the debugger to re-notify the exceptions.

Right click on it and select% with% click on% with% uncheck% with% and check% with%.

After that debug debugger will not notify you of any exception occurring in this section.

However when you close the project the Advanced will be lost, to avoid this you must enable self-saving of the project work area.

To do this you should go to Break in Ignore subsequent exceptions there search for Breakpoint and mark Breakpoint properties or Advanced .

    
18.02.2014 / 23:52
3

Answer:

Yes, there is a way to disable it.

Explanation:

Delphi 7 - In the top menu, click Tools - Debugger Options open a window, navigate to Language Exceptions tab and you will see a checkbox saying [ ] Stop on delphi exceptions soon.

Delphi XE5 - In the top menu, click Tools - Options will open a window, browse the list on the left, below you will find% You will find Debugger Options , then you will have the checkbox down there written Language Exceptions , just uncheck it and that's it.

Obs: I've deduced that you use the Notify on language exceptions or the 7 version of delphi, as these are the most used currently if your delphi version is not XE5 nor to 7 , let me know because I'll find the solution for your version by editing this answer.

    
14.02.2014 / 20:29