Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to evaluate expression whilst debugging

When debugging asp.net code (running against IIS, and using Visual studio 2013) and in a breakpoint and trying to evaluate a variable using quick watch i quite often get "unable to evaluate expression".

deleting the .suo from the asp.net project folder seems to resolve the issue (After reloading the solution)

Is this a recognised bug? getting this a lot now in Visual studio 2013 on more than one machine.

like image 516
Tim Avatar asked Jan 16 '14 16:01

Tim


People also ask

How do you evaluate an expression in debug in Intellij?

Evaluate a complex expression in the editorClick Run | Debugging Actions | Quick Evaluate Expression Ctrl+Alt+F8 .

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.


1 Answers

I faced it today with VS2013.

Goto Tools --> Options --> Debugging --> General --> Scroll to the bottom for "Use Managed Compatibility Mode" and Select the option.

Screenshot from the blog(url below): enter image description here Restart you debugging. Hope it helps others.

What Helped Me is below!

  • Visual Studio 2013 Could not evaluate Expression Debugger Abnormality turned out to be very helpful.

  • Also, you could see @Dreamers answer Unable to debug managed code using visual studio 2013

like image 69
Shubh Avatar answered Sep 18 '22 13:09

Shubh