How to Evaluate Expression Whilst Debugging

Visual studio 2017 Evaluate expression (Debug mode)

In the QuickWatch window (Debug -> QuickWatch or Shift + F9) you can evaluate expressions while debugging.
Sample Image
Is this the functionality you're looking for?

Evaluate expressions during debugging in Visual Studio

I have the exact same issue.

After researching I found the closest thing is Immediate Window which give you some intelligence while typing.

screenshot

How to disable automatic expression evaluation when break point in debug mode?

Well I found the solution. My old project was with target framework .NET Framework 3.5, I just switch it to .NET Framework 4.7.2 and now no more slow microsoft visual studio evaluating expression 'x' ...

Can auto evaluate in Debug console in VCode?

Go to:
File -> Preferences -> Keyboard Shortcuts

Search for
Evaluate in Debug Console
double click on it.

I tested it for example with Ctrl+Insert

Worked as of August 2020, tested on a Ubuntu 18.04 system



Related Topics



Leave a reply



Submit