【问题标题】:eclipse force exception featureeclipse 强制异常功能
【发布时间】:2011-09-28 15:37:14
【问题描述】:

Eclipse 有一个不错的功能强制返回。我想知道它是否有Force异常,所以我可以在当前执行点手动抛出异常?

如果 eclipse 缺少此功能,还有其他解决方法吗?

【问题讨论】:

    标签: java eclipse debugging exception


    【解决方案1】:

    您可以使用 Eclipse 的conditional breakpoint 功能来执行此操作。你可以在断点条件下execute arbitrary code

    【讨论】:

      【解决方案2】:

      在显示视图中,执行:{throw new AnyKindOfException();} 检查here for more eclipse tips and trick

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2018-05-20
        • 1970-01-01
        • 1970-01-01
        • 2014-05-02
        • 2019-04-05
        • 2013-02-12
        • 2011-07-09
        • 1970-01-01
        相关资源
        最近更新 更多