When an exception occurs the debugger gives me the following message:
I can choose to ignore the exception by checking ignore this exception type
.
However doing this ignores this exception in all future projects, which is worse than useless because I don't want to ignore exceptions in every project; I just want to ignore them in this run.
Using the ToolsAPI, is there a way to:
A - ignore exceptions for this run only, or
B - ignore exceptions just for this project, or
C - restore the ignore exception settings when I restart Delphi?
If I can do A, B or C my problem is solved.
I know the ignore exception
data is stored in:
HKEY_CURRENT_USER\Software\Embarcadero\BDS\17.0\Debugging\Embarcadero Debuggers\Language Exception Classes
My preferred option would be to use the ToolsAPI to fixup the messagebox and add a ignore this exception for this session only
checkbox.
But if that's not available I'm fine with messing about with the registry.
If I do fall back to the registry, I would like to force Delphi to reload the settings so I don't have to restart the IDE.
For the record I'm using Seattle, but I'd prefer this to work from 2007 onwards.
I checked the ToolsAPI, but IOTAFileFilterWithCheckEncode
looks unrelated and I think IOTABreakpoint80
only applies to breakpoints set by a user.
I don't have source yet, because I'm not sure what I want is possible using the ToolsAPI, and if it isn't I'll just fallback to using an external app that records the above registry key, starts Delphi and restores the registry key. I'm hoping there's a cleaner way though.