Exception breakpoint

Hi,

I have a question related to exception breakpoint. I have a blazor project using Dapper.

In one of my razor component, I have a button that calls a service class (using dependency injection).

In that service class one method calls a Dapper method :

myConnection.QueryFirstAsync("SOME RANDOM SQL");

Now if I mess my query and nothing is returned, Dapper will throw an exception. Is there any way to break on exception on my line of code. If I check exception breakpoint "only in my code" the exception just appears in the console, no break, and if I uncheck "only in my code", the breakpoint occurs in CLR's code in ThrowHelper.cs and I have to track back where the exception root is.

I don't know if I just mess the breakpoint settings or if it is a bug with blazor or ???

I tried to check/uncheck exception settings in global settings without success.

I checked Rider 2019.3.4 and 2020.1 EAP 8

Thanks for any help.

0
1 comment

Hi Stephane,

Unfortunately, there is a problem in Rider debugger with exception breakpoints for async methods: https://youtrack.jetbrains.com/issue/RIDER-41241

Hopefully, it will be fixed soon.

0

Please sign in to leave a comment.