Project Rider - Break on Exception

2019-04-05 18:08发布

问题:

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.