Attaching a DLL for debugging

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xarzu
    New Member
    • Apr 2007
    • 91

    #1

    Attaching a DLL for debugging

    I have a C++ program I am debugging in Visual Studio 2005 IDE. It uses a DLL. I have the source code for the DLL. Now, suppose I want to debug and step through the DLL. How do I attach this to my current project?

    Actually, I can already debug the app with the DLL but when there is a bug in the dll, I cannot see the source code. So I guess what I am really asking is how to use the DLL's source code during the debug process.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    You have to create a project that builds the DLL and build the debug code into the DLL's image.

    Then in the DLL project you can set the name (and location) of the executable to start in order to debug the DLL.

    Comment

    Working...