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.