title: Why does Visual C++ not hit a breakpoint in, or step through a specific function?
body: <p>I have the following:</p>
  
  <pre><code>classA::FuncA()
  {
   ... code
     FuncB();
   ... code
  }
  
  classA::FuncB(const char *pText)
  {
      SelectObject(m_hDC, GetStockObject (  SYSTEM_FONT)); 
      wglUseFontBitmaps(m_hDC, 0, 255, 1000); 
      glListBase(1000); 
      glCallLists(static_cast&lt;GLsizei&gt;(strlen(pText)), GL_UNSIGNED_BYTE, pText); 
  }
  </code></pre>
  
  <p>I can hit breakpoints anywhere in FuncA. If I try to step into FuncB, it steps over. It will accept a breakpoint in FuncB, but never hits it. I know it is executing FuncB, because I can put a MessagBox() call in FuncB and get the message box.</p>
  
  <p>I'm new to VS2005 after a few years away from extensive VC6 usage. The one situation like this I recall from my VC6 days, is if symbol information is not available. However, in this case both functions are in the same file, so the symbol information must be correct. Also in that case I think you couldn't even set the breakpoint.</p>
  
  <p>I've tried all the silly voodoo like rebuilding the whole solution.</p>
  
  <p>What stupid thing am I overlooking?</p>
  
  <p>EDIT: Added code for FuncB in response to comment about it possibly being essentially inline-able. (It's just the exact sample code from MSDN for wglUseFontBitmaps [minus comments here]). I don't see how inlining that would impede stepping through each call.</p>