title: VC++2012 debugger can't evaluate expressions - "An unspecified error has occurred"
body: <p>When debugging an unmanaged (native) C++ program, I get the error "An unspecified error has occurred" any time I try to evaluate an expression in the Watch, or in a tracepoint, or execute anything in the Immediate window. The tooltip evaluator doesn't work either. The only window that shows variables is "Locals"; the "Autos" window is empty. Here's how it looks like in the Watch:</p>
  
  <p><img src="https://i.stack.imgur.com/bvWbw.png" alt="enter image description here"></p>
  
  <p>This problem occurs on two different computers (so a config issue is unlikely), but only on one specific solution. This project was recently migrated from Visual C++ 2008, where everything was fine. Obviously I made sure the debug info is there, and optimizations are off. Rebuild all didn't helpGoogle knows nothing.</p>
  
  <p>What can I do about it?</p>
  
  <p>----------- <strong>EDIT 2:</strong> -----------<br>
  I managed to isolate the problem. It appears that the debugger cannot inspect variables in methods of classes in a namespace named "NI". To reproduce the problem, compile this code and place a breakpoint where indicated. The Watch window won't work.</p>
  
  <pre><code>namespace NI
  {
      class Test
      {
      public:
          static void helloworld();
      };
  
      void Test::helloworld()
      {
          int i = 0;     // &lt;------- insert breakpoint here
      }
  }
  
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      NI::Test::helloworld();
      return 0;
  }
  </code></pre>
  
  <p>I submitted a bug report to Microsoft.</p>