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:
Break on specific exceptions is not implemented yet. Now Rider can break only on unhandled exceptions. Will come soon.
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