CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Jul 2007
    Posts
    43

    How to attach the source code of a dll when debugging in VSTS 2005

    Hi:

    How do attache the source code for DLLs in Project Reference in VSTS (visaul studio team system 2005) . i have just switched to VSTS recently. I need that to debug.

    Please let me know.

    Thanks

  2. #2
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: How to attach the source code of a dll when debugging in VSTS 2005

    Do you mean how to download the source code from the code repository, or how to attach it while debugging? I'm confused of your question.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  3. #3
    Join Date
    Nov 2007
    Location
    .NET 3.5 / VS2008 Developer
    Posts
    624

    Re: How to attach the source code of a dll when debugging in VSTS 2005

    I think his question is this...

    say you have a 3rd party DLL, and you are calling a function in that DLL. How do you debug the method call?

  4. #4
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: How to attach the source code of a dll when debugging in VSTS 2005

    You need to have sources and debug version (with the .pdb file) of the dll. Then, if you try to step into a method defined in the dll, the debuger will ask you where source file of the method is located and you can browse to the sources.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

  5. #5
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: How to attach the source code of a dll when debugging in VSTS 2005

    continuing with this question further, should we add the reference of the dll in the application before running ?

  6. #6
    Join Date
    Jul 2006
    Posts
    297

    Re: How to attach the source code of a dll when debugging in VSTS 2005

    Sometimes you also need to load the symbols for the DLL file.

    After the debugger is started go to Debug > Windows > Modules

    Then find the dll you need, right click and click 'load symbols' then just navigate to the .pdb file for that dll.

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