Unable to load debug symbols for a referenced assembly

G

glaserp

Hi,

I am developing a Windows application with C# in Visual Stuio .NET. My
application references three assemblies that are developed in another
project. I have added these assemblies as references, so that when I
compile the project, the dll files and corresponding pdb files are are
automatically copied to the bin\debug directory of my application. When
I look at the Modules window during debugging, it seems that the debug
symbols for the assemblies is not loaded. I right click on one of the
modules and select "Reload Debug Symbols" and browse to the pdb file
that's in the bin/debug directory. After doing this, the modules window
still indicates that the debug symbols are not loaded, and I am unable
to trace into the dll in question.

What I would really like is for these symbol files to be loaded
automatically whenever I debug. But for now I would be happy just to be
able to load the debug symbols manually.

I'd be graetful for any suggestions.

Many thanks!

--Phil
 
G

glaserp

To answer my own question, and for the benefit of posterity, and for
the welfare of all who seek to debug .NET applications without pulling
their hair out:
I am developing a Windows application with C# in Visual Stuio .NET. My
application references three assemblies that are developed in another
project. I have added these assemblies as references, so that when I
compile the project, the dll files and corresponding pdb files are are
automatically copied to the bin\debug directory of my application. When
I look at the Modules window during debugging, it seems that the debug
symbols for the assemblies is not loaded. I right click on one of the
modules and select "Reload Debug Symbols" and browse to the pdb file
that's in the bin/debug directory. After doing this, the modules window
still indicates that the debug symbols are not loaded, and I am unable
to trace into the dll in question.

What I would really like is for these symbol files to be loaded
automatically whenever I debug. But for now I would be happy just to be
able to load the debug symbols manually.

It turns out that the dll's I had been trying to trace into were loaded
in the global assembly cache. I don't know why, but this prevented the
debug symbols for these dll's from being loaded. I removed the dll's
from the GAC and now the symbols load on startup and I can trace into
the DLLs just fine.

--Phil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top