title: c++ .cpp file not found error page during breakpoint debugging
body: <p>My code compiles and runs without any error messages, however I commented out a line (and it still runs with no errors) but the code executed as if the line was not commented out.<br />
  I set a breakpoint and tried to step into the function where the problem seemed to be, but when I tried to step in I was instead sent to this screen</p>
  <p><a href="https://i.stack.imgur.com/P1Q6P.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/P1Q6P.png" alt="button.cpp not found" /></a></p>
  <p>If I press the &quot;Browse and find button.cpp&quot;, then I am immediately shown this message</p>
  <p><a href="https://i.stack.imgur.com/MbW4r.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MbW4r.png" alt="the source file is different from when the module was built" /></a></p>
  <p>If I press &quot;yes&quot; then it shows me the correct file, with the line commented out, but then proceeds to execute the commented out line as if it was not commented out at all.</p>
  <p>Pressing &quot;no&quot; closes the box, however selecting the correct .cpp file just opens it up again.</p>
  <p>I've made sure the file is saved, and restarted visual studio, and the problem persists.</p>
  <p>Here is the surrounding code:</p>
  <h2>The function that brings me to this page</h2>
  <pre><code>vector&lt;GameObject*&gt; gameObjects;
  for each (auto object in gameObjects)
  {
      object-&gt;Render();
  }
  </code></pre>
  <p><code>Button</code> is a templated class and inherits from <code>PhysicsObject</code> which inherits from <code>GameObject</code><br />
  <code>Render()</code> is a virtual method of <code>object</code> and <code>PhysicsObject</code></p>
  <h2>The code that should not be executed but is</h2>
  <pre><code>template&lt;class T&gt;
  void Button&lt;T&gt;::Render()
  {
  //PhysicsObject::Render();
  }
  </code></pre>
  <p>I've never seen any error like this before and it only seems to tell me it's a problem when I step through the code with a breakpoint.<br />
  I have no idea how to even search for this kind of error message and I have no idea what it means or what caused it.<br />
  I did not edit my code during execution and I didn't change anything about the structure of my project, this was working before.</p>