Questions
A first-chance exception refers to the state when the runtime has caught a problem, prepared an exception object, but hasn’t yet looked for an error handler.
How to capture first-chance exceptions in Rider?
Answer
By default, JetBrains Rider does not suspend for first-chance exceptions. Exceptions within a try-catch block are classified as first-chance, meaning they are caught before propagating further, and thus the debugger does not pause execution.
To suspend on such exceptions:
-
Navigate to Run | View Breakpoints and Exceptions.
-
Locate the Any CLR Exception breakpoint.
-
Enable the User code option:
Comments
0 comments
Please sign in to leave a comment.