CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 1999
    Posts
    17

    How can I trace into DLL when I debug programs?

    I want to trace into my dll when I debug,how will I do?


  2. #2
    Join Date
    Feb 2001
    Location
    Sydney, Australia
    Posts
    1,909

    Re: How can I trace into DLL when I debug programs?

    Build both (your app and your dll as debug version (set debug info ON in both projects).

    Rate answer if it help you
    It gives me inspiration when I see myself in the top list =)

    Best regards,

    -----------
    Igor Soukhov (Brainbench/Tekmetrics ID:50759)
    igor@soukhov.com | ICQ:57404554 | http://soukhov.com
    Best regards,
    Igor Sukhov

    www.sukhov.net

  3. #3
    Join Date
    Jun 2001
    Location
    Pakistan
    Posts
    11

    Re: How can I trace into DLL when I debug programs?

    Just compile the Dll and the Dll client.
    Then go to the Dll Project | Settings menu
    go to Debug Tab.
    There You will find Executable for debug session:
    Here supply the path for your Dll Client exe file.
    Now put a break point any where in your Dll
    and press F5 you will be able to Debug.

    Also you can do it this way:
    Put a break point in your DLL.
    Press F5.It will ask for the Executable for debug session.
    Supply the path of your DLL Client .
    Now you can start Debugging.

    If it works rate this post.

    Nauman







  4. #4
    Join Date
    Dec 1999
    Posts
    17

    Re: How can I trace into DLL when I debug programs?

    Now I debug my DLL client (.exe file),and I want to trace my DLL from client,NOT debug my DLL,
    so how can I do?


  5. #5
    Join Date
    Jun 2001
    Location
    Lewes, UK
    Posts
    1,313

    Re: How can I trace into DLL when I debug programs?

    When you run the debugger make sure it can find the .pdb (program database) file for both the exe and the dll. You can modify various build options to help with this, but the simplest way is just to copy the debug build dll and the appropriate pdb to the same directory as the debug exe or vice versa. If you do this manually you'll need to do it each time the code changes in whichever dll or exe you had to copy over.


    Hope this helps

    Eugene Gill


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured