Can I correctly debug assemblies loaded with the 'AssemblyResolve' event?
Posted
by Thiado de Arruda
on Stack Overflow
See other posts from Stack Overflow
or by Thiado de Arruda
Published on 2010-05-21T20:01:05Z
Indexed on
2010/05/21
20:10 UTC
Read the original article
Hit count: 196
I'm experimenting with the AppDomain's 'AssemblyResolve' event by hidding the depedencies for an executable file in another folder. The assemblies seem to beloading and executing fine, however debugging seems to be crazy, sometimes it hits my break points, sometimes it doesnt , and sometimes it hits the same code twice(It seems absurd but I'm sure the code is executing only once). I don't understanding how debuggers works but I guess it has something to do with the PDB files. Anyone got an idea of what might be happening and how can I fix it?
Edit: Let me add that I'm calling methods on the dynamically loaded assemblies using reflection, sometimes the method I'm stepping over throws an exception that only pops at a later time.
© Stack Overflow or respective owner