如果一个
Java应用程序抛出一个未处理的异常,它会导致
Eclipse在那时中断.有没有办法检查当前的例外情况?基本上,MSVS的$异常?
@H_301_2@
解决方法
在使用Exception断点时,会发生描述的问题,在这种情况下,您无法访问异常变量,并且无法在变量视图中检查它.
我在以下帖子中发现了一个“解决方案”这个问题:Breakpoint at exception in Eclipse – how to examine Exception object?
它是:
@H_301_2@ @H_301_2@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 !