I would like to examine the exception in the debugger.
When I have
except on e:exception do
This is trivial, I can just examine the e variable
But, many exception handlers do not have an on e:exception clause.
Is there a special variable such as $exception that can be inspected, or some other method to inspect the exception that does not require changing the source.
I remember doing this (though memory can be faulty), but have not been able find a way to do this.
In the System
unit there is a function named ExceptObject
which returns the exception object that is currently active, or nil
if no exception is active. The debugger is able to evaluate this function and so give you the information you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With