I am creating a plugin for a product that loads plugin DLL files using Assembly.Load(byte[]) . All this is very good and good, but that means that I donβt have the usual ways to load debugging symbols to go through my code.
The crazy thing: a few months ago I had the same problem and it was solved - and I was proud of myself! Therefore, I know that this can be done, I just forgot how to do it.
I have some vague recollections of things that I may have tried, but I cannot tease details from my head:
- .NET Reflector
- Probably wrong, though, since I clearly remember that I went to the source .cs file.
- Using IIS Express, not Cassini
- But this seems like a strange solution to me - the assembly is loaded from a byte array, so the infrastructure knows nothing about where the DLL came from, or what the corresponding PDB might look like if it sees it. This problem must exist in any environment.
- Manually loading characters through the Modules window
- Tried this; I get "The xxxxx.pdb character file does not match the module" - because, of course, we are loading from a byte array, and not from the DLL itself.
source share