title: Visual Studio 2010 debugger build correctly - compiler pdb and linker pdb not in synch?
body: <p>I have a solution in MS VS 2010 that compiles and builds properly after a rebuild all (1).  However, after I make a change to a source file and begin debugging, VS recognizes the project is out of date and builds the project (2) successfully (as expected).</p>
  
  <p>The problem is that it seems VS begins debugging the project using obj/pdb/etc.. from (1) above instead of (2).  If I break into the debugger and navigate to the module that changed in the file of interest, I'm told "the source file is different from when the module was built".  Indicating I don't want to rebuild the source, I'm given the following info below: (Note that in order to get a "good" build I have to rebuild the solution (or delete vc100.pdb)).</p>
  
  <hr>
  
  <p>Locating source for "file of interest". Checksum: MD5 {59 96 7d 1 9f b 33 20 63 4c 81 1d d7 c6 94 30}</p>
  
  <p>Determining whether the checksum matches for the following locations:
  1: "file of interest" Checksum: MD5 {61 66 43 cb d1 97 d1 d5 0 dc 9b 60 64 71 b2 b6} Checksum doesn't match.
  The file "file of interest" exists.</p>
  
  <p>Looking in script documents for "file of interest"...</p>
  
  <p>Determining whether the checksum matches for the following locations:</p>
  
  <p>1: "file of interest" Checksum: MD5 {61 66 43 cb d1 97 d1 d5 0 dc 9b 60 64 71 b2 b6} Checksum doesn't match.</p>
  
  <p>Looking in the projects for "file of interest".</p>
  
  <p>The file was not found in a project.</p>
  
  <p>Looking in directory </p>
  
  <p>.</p>
  
  <p>misc directories</p>
  
  <p>.</p>
  
  <p>The debugger will ask the user to find the file: "file of interest".</p>
  
  <p>The user pressed Cancel in the Find Source dialog. The debug source files settings for the 
  active solution have been modified so that the debugger will not ask the user to find the file: "file of interest".</p>
  
  <p>The debugger could not locate the source file "file of interest".</p>
  
  <hr>
  
  <p>At this point the debugger recognizes the pdb hashes are out of synch even though compiler/linker failed to recognize this earlier.  Everything works correctly after a rebuild but doesn't seem to build itself correctly after a change to a source file.</p>
  
  <p>It seems that a "rebuild" properly builds both vc100.pdb and debugger pdb while a "normal" build only only touches the compiler/linker vc100.pdb...but I'm not positive.</p>
  
  <p>Anyone have any ideas?</p>
  
  <p>Thanks,</p>
  
  <p>Paul </p>