Wednesday, January 26, 2011

Debugging in Release mode Fail

I was trying to debug into a Controller Action in MVC to inspect some local variables, when I kept getting this strange warning in Visual Studio:

Cannot obtain value of local or argument '<this>' as it is not available at this instruction pointer, possibly because it has been optimized away


After much gnashing of teeth, I finally realized that I was running in Release and not Debug mode.  Doh!

No comments:

Post a Comment