title: Debugging Visual Studio 2010 DLL Project
body: <p>I'm trying to debug a C/C++ native DLL project from Visual Studio 2010. I'm attempting to follow these instructions:
  <a href="http://msdn.microsoft.com/en-us/library/c91k1xcf(v=VS.100).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/c91k1xcf(v=VS.100).aspx</a></p>
  
  <p>I want to use the built-in debugger and be able to step code, examine structures, etc. as I would do with a regular .exe project. The instructions on the page above describe a <strong>Debugging</strong> category under <strong>Configuration Properties</strong> which I do not see.</p>
  
  <p><a href="http://img707.imageshack.us/img707/4402/lalasz.png" rel="nofollow noreferrer">http://img707.imageshack.us/img707/4402/lalasz.png</a></p>
  
  <p>Just pressing F5 to debug results in the following error:</p>
  
  <blockquote>
    <p>Unable to start program 'C:\Users.......Test.dll'</p>
  </blockquote>
  
  <p>I've used the debugger for regular .exe projects many times and it works fine on this computer. I'm not sure if I'm just missing something very obvious right now though.</p>
  
  <p>Edit: Since I didn't make it clear from the start, I want Visual Studio to LoadLibrary my DLL into a stub process and let me debug at a source level from there, much like how OllyDbg does it.</p>
  
  <p>My DLL is not the type that holds a bunch of functions to be exported and called. Instead it does a switch/case in the DllMain and on DLL_PROCESS_ATTACH will spawn a new thread. Therefore all I need Visual Studio to do is to load my DLL into a stub executable and allow me to set breakpoints, etc.</p>