title: how to attach to a process that loads my DLL and debug it
body: <p>basically, I am developing a DLL (an open interface) that will be used by a third party software. I want to debug my DLL after it is loaded by this thirdparty DLL, because I found a specific bug that only happens when my DLL is  loaded by this third party software (my DLL works OK for all other software that accepts this open interface) </p>
  
  <p>I set __debugbreak() in my the code DLL and run the third party software. An Visual studio dialog did jump up asking if I want to debug.. but after I click OK, instead of getting get into a visual studio window that shows the line of code that I set a breakpoint, visual studio just crashes.</p>
  
  <p>I found out that the third party softward loads my DLL and runs it in another thread. And I suspect this is the reason that the third party software crashes, because effetively __debugbreak() throws an uncaught execption in a thread launched by the main thread. </p>
  
  <p>In this case, how can i debug my DLL?</p>