Click to See Complete Forum and Search --> : How to attach the source code of a dll when debugging in VSTS 2005


doglin82
September 3rd, 2008, 10:54 PM
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

boudino
September 4th, 2008, 01:53 AM
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.

eclipsed4utoo
September 4th, 2008, 07:22 AM
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?

boudino
September 4th, 2008, 07:42 AM
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.

vcdebugger
July 30th, 2009, 05:12 AM
continuing with this question further, should we add the reference of the dll in the application before running ?

monalin
July 30th, 2009, 09:05 AM
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.