If a Java application throws an unhandled exception, it causes Eclipse to break at that point. Is there a way to inspect the current exception? Basically, $exception
from MSVS?
In think the problem described occurs when making use of Exception breakpoint, in which case you don't have access to the exception variable and can't inspect it in the variables view.
I found a "solution" to this problem in the following post: Breakpoint at exception in Eclipse - how to examine Exception object?
It is:
There is an option in the Eclipse Preferences that allows inspecting of the thrown exception:
Check Java -> Debug -> Open popup when suspended on exception
With this option there will be a popup allowing inspection of the exception.
Strange that this option is not checked by default as it is very useful !
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