I have looked everywhere and I can't seem to find a place where I can evaluate an expression while debugging.
The only thing I can find is Execute in interactive
however this doesn't support the direct expression evaluation.
This annoys me since it's one of the features I use the most :)
Does anyone know where it is in Visual Studio 2017 Community edition
When stopped in the debugger hover the mouse cursor over the variable you want to look at. The DataTip will appear showing you the value of that variable. If the variable is an object, you can expand the object by clicking on the arrow to see the elements of that object.
Expressions can be evaluated with the Debug Console REPL (Read-Eval-Print Loop) feature. To open the Debug Console, use the Debug Console action at the top of the Debug pane or use the View: Debug Console command (Ctrl+Shift+Y).
In the QuickWatch window (Debug -> QuickWatch
or Shift + F9
) you can evaluate expressions while debugging. Is this the functionality you're looking for?
I think the thing you're looking for is the Immediate window.
Debug > Windows > Immediate
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With