Project Rider - Break on Exception

狂风中的少年 提交于 2019-12-05 17:21:25

问题


I can't find the option in JetBrains Project Rider to "Break on Exception". Where I would normally add an exception breakpoint in IntelliJ, I see this:


回答1:


Break on specific exceptions is not implemented yet. Now Rider can break only on unhandled exceptions. Will come soon.




回答2:


There are two ways to do this.

Break on all exceptions

Go to Run | View Breakpoints.... Click the green + icon. Select Stop on all .NET exceptions.

You can then modify the breakpoint:


Break on a specific exception

Either use:

  • Run | Stop on exception...
  • Run | View Breakpoints.... Click the green + icon. Select .NET exception breakpoints.

Either approach will give you the following UI where you can search for an exception type:

To manage the settings, use the Breakpoints dialog.



来源:https://stackoverflow.com/questions/39150047/project-rider-break-on-exception

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!