JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Watch variables and expressions

Last modified: 28 June 2024

If you want to evaluate a number of variables or expressions in the context of the current frame, view all of them simultaneously, and follow changes of their values as you step through the program, you can create watches for them.

Values of watched variables and expressions are only visible when the application is suspended during a debug session and all involved variables are accessible in the current scope. Unlike evaluated expressions, watches are saved as a part of the solution and evaluated in the subsequent debug sessions.

All watches that you add appear at the top of the variables pane in the Debug window. If you want to have a watch displayed on a specific line in the editor, use inline watches.