Can I correctly debug assemblies loaded with the 'AssemblyResolve' event?
- by Thiado de Arruda
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.