解决方法
在使用Exception断点时,会发生描述的问题,在这种情况下,您无法访问异常变量,并且无法在变量视图中检查它.
我在以下帖子中发现了一个“解决方案”这个问题:Breakpoint at exception in Eclipse – how to examine Exception object?
它是:
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 !