title: Microsoft Visual Studio: Debugging multiple projects at once (executable that accesses functions in DLL + the DLL used by executable)
body: <p>I was wondering how to debug multiple projects at once (specifically, project that builds into an executable and a project that builds into a DLL). More specifically, I want to step through the DLL, whose source is open to me.</p>
  
  <p>I was wondering how to do this for both C++ and C# projects?</p>
  
  <p>I think I know how to do this for the C# case:</p>
  
  <ol>
  <li>Create a new solution.</li>
  <li>Add both projects to the solution.</li>
  <li>Build the DLL project (as debug).</li>
  <li>Add a reference to the DLL that was built to the executable project
  (Does the working directory have to be the directory the debug DLL project was built in?)</li>
  <li>Set the executable project as the start up project and debug normally; you should be able to set breakpoints in the DLL, etc.</li>
  </ol>
  
  <p>Does this sound correct? If not, could anyone tell me what I am missing?</p>
  
  <p>More importantly, how do I do this for the C++ case?
  Thanks!</p>
  
  <p>R</p>