JetBrains Rider
 
2025.1
Get JetBrains Rider

Debug .NET exceptions

Last modified: 08 April 2025

An exception is an error that occurs in runtime and typically disrupts the normal execution flow of a program. An unhandled exception terminates the thread where it occurs. In a single-threaded app, this usually ends the entire process. In a multithreaded app, the process may continue if other threads are running.

To aid in ebugging, JetBrains Rider allows you to explicitly configure the debugger to suspend the program’s execution when any exception, or an exception of a specific type, is thrown. This suspension happens right after the exception occurs, before any exception handling is executed, enabling you to inspect the program's stack frames and the surrounding context.