Delphi - How to re-enable a debugger exception notification? -


In D 2009 I opened a project (D created in 2007/08) and it will compile, but if executed, throw several exceptions.

Strange, but I know the project is a mess, so I want to proceed and want to fix it. I am Okay, in fact it is not all right, just doing it will be enough.

When I run it, I get some debugger exception notification (break, release, communicate a little message with the help button) and I have to move forward and see that while skipping the exception, probably will work. I checked the "Ignore this Exception type" check box in the bottom left corner and click Continue Now I no longer get the exception notification, but the application has not yet been run. I just get some obscure error boxes and have very little idea what's going on.

I want to re-enable the exception type which I had previously chosen to ignore. But I can not find the option anywhere Where should I look for it? Can anyone help?

is drawn from the following: (CC is licensed) Although it is related to Delphi 2005 Could.

Why do I continue with the error message even after writing the exception handler?

In its default settings, Delphi IDE notifies you when there is an exception in your program, as in Figure 1. It is important to realize that at that time, none of your program's exception handling code has yet been run; this is only Delphi;

Avoid notification

As a debugger, its special status allows you to get the first notification of any exception in your program. If you do not want to be notified with an exception, you have a few options.

  • You can use Delphi's "Advanced Breakpoint" to disable exception handling around any area of ​​code. To begin, set the breakpoint on the line of code where you want to ignore IDE exceptions. Right-click the breakpoint dot in the Gutter and open the Breakpoint-Properties dialog. There are some check boxes in the Advanced section (see Figure 2) to clear the debugger from disrupting your program in that row, clear the "Break" box, and set the box to "Avoid the Exceptions at the next" box.

    After this, set another breakpoint where you want the debugger to change its properties to handle its exceptions in order to resolve the exception where you want to.

  • You can tell the debugger to ignore some types of exceptions. In Figure 3 Delphi's language exception options are shown. Add an exception class to the list, and all the exceptions of that type and the descendants of any kind will pass through your program without the intervention of Delphi.

  • In one of the options related to the previous one, you can ask the debugger to not interrupt any exceptions. To do this, clear the "Notify Language Exceptions" check box.

  • Finally, you can completely stop the integrating debugging. Delphi will not inform you about the exceptions, and it will not stop at breakpoint or will not allow the use of the "stop" button. Turn off integrated debugging in debugger options, as shown in Figure 5 for Delphi 2005.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -