By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,083 Members | 1,608 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,083 IT Pros & Developers. It's quick & easy.

Unable to load debug symbols for a referenced assembly

P: n/a
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

Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.