It’s annoying to have a DLL in Debug mode that you had another team make and give you their source with it, but not be able to debug into it without adding the source project to your solution and using a Project Reference.
Who said you couldn’t?
AmiD has come up with a simple way that allows you to debug into the source of file references:
- Take the PDB file that was created in your bin\Debug directory and place it in the same directory as the compiled Assembly (if it’s in the GAC, you’ll have to place it in the same directory as the version that is in the GAC; usually %WINDIR%\assembly\GAC\%Assembly Name%\%Version%).
- Take the solution referencing the Assembly file and delete its .SUO file. This file saves Visual Studio.NET’s configuration (Breakpoints, Open Document Windows, etc.).
- Go to where you want to Debug Into (F11) the Assembly, press F11 and a dialog would appear asking you where the source files are. This selection can only be made once (unless you re-delete the SUO file).
This allows you to Debug into File References, provided you have the source files.