更新时间:2024-04-12 GMT+08:00
分享

异常断点

CodeArts IDE调试器支持异常断点,每当抛出可抛出或其子类时,断点就会挂起程序。异常断点是全局应用的,不需要特定的源代码引用。

  1. 单击右侧活动栏中的Run按钮()或按“Ctrl+Shift+D”/“Shift+Alt+F9”/“Alt+5”/“Ctrl+Shift+F8”打开Run and Debug视图。
  2. 展开BREAKPOINTS部分,然后选中要设置的异常断点旁边的复选框。

    CodeArts IDE提供了几种类型的异常断点。这些定义了在抛出时暂停程序执行的特定异常类。

    • All Errors: Error及其子类。
    • All Exceptions: Exception及其子类。
    • Uncaught Exceptions: 未捕获的Exception及其子类。
    • Caught Exceptions: 捕获的Exception及其子类。
    • Runtime Exceptions: RuntimeException及其子类。
    • IO Exceptions: IOException及其子类。
分享:

    相关文档

    相关产品