If you are debugging a C ++ DLL in VS2008, you can set Debugger Type = "Native Only" in the debug settings in the project properties dialog box that you are trying to debug (unless, of course, you are trying to debug your own library which is loaded by an executable file)
source share