How to break on exception in rider

Answered

Hi, guys, how to break on exception in Rider, it is not implemented yet?

8
36 comments

Microsoft Visual Studio offers the option to break on exceptions "in my code only". This does not mean to ignore exceptions in other libraries; this means that if an exception is thrown in another library which I invoked, and it has not been handled by the time the unwinding reaches my code, then the debugger breaks in my code.

So, for example, if I invoke a library which then tries to access an List item that is out of bounds, the debugger breaks at my statement which invokes that library. But if the library catches the index out of bounds exception and returns to me as if nothing happened, then the debugger does not break at all. It is very elementary, and debugging is hell without this.

And of course in properly written code, there is no such thing as an uncaught exception, so obviously, this feature needs to work even if the exception gets ultimately caught.

 

As a paying customer I would expected that such feature would work...

3

Hi Jindrich Cincibuch,

Please try disabling the option `Enable external source debug` on the settings page "Preferences | Build, Execution, Deployment | Debugger". It should help not to stop on unhandled exceptions in external code.

If this does not help, please create a bug report on https://youtrack.jetbrains.com/issues/RIDER, attach a repro project and screenshots of your settings page "Preferences | Build, Execution, Deployment | Debugger".

Thanks.

0

Sofia Byzova Hi I have that disabled. See my settings:


what do you mean repro project? Any console app does that... You can try by yourself..

0

Hi, any progress on this? I like rider, but this is driving me nuts...

0

@Jindrich Cincibuch without a proper bug report it is not even get planned.

Please create a bug report on https://youtrack.jetbrains.com/issues/RIDER, attach a repro project and screenshots of your settings page "Preferences | Build, Execution, Deployment | Debugger".

0

Please sign in to leave a comment.