471,309 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,309 software developers and data experts.

Unable to load debug symbols for a referenced assembly

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
1 3278
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.

Similar topics

1 post views Thread by Eric Robert | last post: by
2 posts views Thread by Razzie | last post: by
2 posts views Thread by John Alesse | last post: by
10 posts views Thread by Brett | last post: by
1 post views Thread by Doctorslicer | last post: by
4 posts views Thread by =?Utf-8?B?SnVhbiBEZW50?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.