Solution for #VisualStudio “Internal error in the expression evaluator”


If you are using Visual Studio 2015, you might have encountered this error “Internal error in the expression evaluator” while debugging your code; the debugger and the watch window will start throwing this error instead of returning the value.

 

If you encounter this issue and came to this page by searching online, just hold your breath. We will show you, how to fix this error and continue working with Visual Studio normally.

 

“Internal error in the expression evaluator” - A quick to resolve this Visual Studio 2015 error (www.kunal-chowdhury.com)

 

In case you faced this issue, when your favorite Visual Studio 2015 IDE started throwing the error “Internal error in the expression evaluator” while evaluating any variable in debug mode or in the watch window, this is due to a bug and there’s an simple tweak to resolve this error.

 

To resolve this error, open the Visual Studio Options page from the Tools –> Options menu. Then select the tree node labeled “Debugging”. At the right panel, find for the settings that says “Use the legacy C# and VB expression evaluators” and check it as shown below:

 

Solution - Internal error in the expression evaluator - Visual Studio 2015

 

Click “OK” to save the options/settings of Visual Studio. Run the debugger once again. Now you will be able to debug and watch any variable inside your IDE. I hope that the post was useful and helped you to resolve it. Don’t just stop here, read out my other posts on Windows 10 Tips & Tricks series and Visual Studio 2015 Tips & Tricks. Till the time I publish a new blog post, happy coding!!!

 


If you have come this far, it means that you liked what you are reading. Why not reach little more and connect with me directly on Twitter , Facebook , Google+ and LinkedIn . I would love to hear your thoughts and opinions on my articles directly. Also, don't forget to share your views and/or feedback in the comment section below.

2 comments

  1. For me, suggested option didn't work. But enabling the option "Use Managed Compatibility mode" worked.

    Below link helped me:
    http://www.unknownerror.org/opensource/tj/watch/q/stackoverflow/21854426/get-quotinternal-error-in-the-expression-evaluatorquot-on-quotadd-watchquot-func

    ReplyDelete


 
© 2008-2016 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top