Debugging
note
Rider's debugger does not support the following types of applications:
Single-file applications — applications that were built with the
/p:PublishSingleFile=true
flag.Native applications that host CLR to run .NET code. For example, applications that use CLR Hosting.
Debugger is an integral part of JetBrains Rider that allows you to examine the runtime behavior of your application, identify problematic code, and isolate the source of the problem step by step.
Define a run/debug configuration for the program that you want to debug.
Set breakpoints in the source code where the potential problem may lie.
Start debugging by launching your program in the debug mode AltF5 or attaching to a running process CtrlAlt0P.
When the program execution breaks, step through your code, inspect variables, and evaluate expressions.
You can edit the code of a suspended program and then continue debugging without restarting with Hot Reload.
Resume the debugging session F5 to let the program run to the next breakpoint, if any.
To finish the debugging session, press ShiftF5, select Run | Stop in the menu, or click Stop
in the Debug window.
The major part of debugging activities takes place in the Debug window, which becomes available once you start debugging. To open this window, press Alt05 or select View | Tool Windows | Debug in the main menu.
While debugging, you can also perform the most common debugger actions from the AltEnter menu. For example Run to Cursor, Skip to Cursor or Toggle breakpoints:
![https://resources.jetbrains.com/help/img/rider/2024.3/debugging-alt-enter.png](https://resources.jetbrains.com/help/img/rider/2024.3/debugging-alt-enter.png)
You may be also interested in the following language- and framework-specific guidelines:
CtrlF5 | |
CtrlAltShift0R | |
AltF5 | |
AltShiftF9 | |
CtrlAlt0P | |
AltShift0P | |
ShiftF5 | |
CtrlAltBreak | |
F5 | |
AltF10 | |
Stop Background Processes... | CtrlShiftF2 |
F10 | |
AltShiftF8 | |
F11 | |
AltShiftF11 | |
| |
ShiftF11 | |
CtrlF10 | |
CtrlAltF9 | |
CtrlShiftF10 | |
AltNumPad * | |
CtrlAlt0Q | |
CtrlAltF8 | |
F9 | |
CtrlAltShiftF8 | |
CtrlF9 | |
CtrlAlt0B | |
AltF9 | |
Alt04 | |
Alt05 | |
| |
Ctrl0E,Ctrl0T |
For the full list of JetBrains Rider keyboard shortcuts, refer to Keyboard shortcuts in predefined keymaps.