Visual Studio Debug Mode
I keep getting the following when trying to step through code and use the Immediate Window or Watch Window in Visual Studio.
'Unable to Evaluate the Expression'
Im using Visual Studio 2008. Searching the forums there is a lot of talk of using the overloaded Response.Redirect and passing false to the endResponse parameter. I have tried that
I have also checked that my code is running the debug version and not the complied version.
I decided to start a brand new Windows Form Application with nothing on the form. In the Form Load event I declare a String and set a value to it. Stopping in there via a breakpoint I try and print the value of the String to the Immediate window and I still get 'Unable to Evaluate the Expression'
This has occured all of a sudden. Regardless of any solution I open I am unable to use the Immediate window or watch windows to determine values in the code.
Im not sure If a setting in Visual Studio has changed?
Any help would be greatly appreciated.
我在Visual Studio 2012中遇到了这个问题,并且修复了Visual Studio 2012调试模式中的设置:“无法评估表达式”
Tools -> Options -> Debugging -> General -> Enable Just My Code
If the option is not ticked, then I get "Unable to evaluate the expression".
If I tick the option AND restart visual studio (this is the crucial bit) it fixes the problem for me.
链接地址: http://www.djcxy.com/p/2798.html上一篇: 编写回调函数
下一篇: Visual Studio调试模式