项目骑士 - 打破例外

时间:2016-08-25 16:09:31

标签: exception breakpoints rider

我在JetBrains Project Rider中找不到“Breaking Exception”的选项。我通常会在IntelliJ中添加一个异常断点,我看到了:

enter image description here

2 个答案:

答案 0 :(得分:13)

有两种方法可以做到这一点。

中断所有异常

转到运行 | 查看断点... 。单击绿色+图标。选择停止所有.NET异常

enter image description here

然后您可以修改断点:

enter image description here

中断特定异常

使用:

  • 运行 | 停止异常...
  • 运行 | 查看断点... 。单击绿色+图标。选择 .NET异常断点

这两种方法都会为您提供以下用户界面,您可以在其中搜索异常类型:

enter image description here

要管理设置,请使用断点对话框。

答案 1 :(得分:3)

尚未实施特定例外的中断。现在Rider只能打破未处理的异常。很快就会到来。

相关问题