Reputation: 216
In Delphi XE2, my program now produces a "List index out of bounds" popup dialog.
I have turned "Notify on language exceptions" on under (Tools\Debugger Options\Language Exceptions) but the exception is not being displayed when debugging.
The following exception types are set to be ignored.
Is there a way to capture the exception without resorting to trial and error with breakpoints?
EDIT I am trying to get the exception dialog to appear while debugging.
Upvotes: 0
Views: 3699
Reputation: 216
The "Additional options" box had the value -LUDesignIDE. It seems that this was preventing Delphi from catching the exception, once removed things returned to normal. I don't know if only this option causes this, or if other options entered would cause the same problem.
Upvotes: 0
Reputation: 9453
I had the same problem with one of my projects, where Delphi wouldn't catch the exception and let me click the break
or continue
buttons. My problem was that I had some DCUs without debug that were being linked in because Delphi found them first when compiling/linking.
One other reason that I've seen that causes this is when I used some components and/or packages that were built without debug and the exception occurred therein. Once I built the packages & components with debug and then rebuilt my project, Delphi caught the exceptions.
Upvotes: 1