How can I debug a late-bound C# DLL in VS2005?

I've created a plugin system that routes calls from clients into the particular .Net assembly they request. This will always be late-bound. I haven't been able to figure out how to debug those plugin DLLs that are late-bound, though. The .pdb for them is generated, in the same dir, but any breakpoint I set in the plugin (whether I attach to the client process or try some other way) always says that the symbols for this page aren't loaded and the breakpoint will not be hit. Sure enough, it isn't. Any ideas
Thanks in advance for any help offered.


Answer this question

How can I debug a late-bound C# DLL in VS2005?

  • Scott Ha

    A couple things to check:

    1. Look in the modules window to see if the module you are delay loading is coming from the right place. (Fullpath is one of the columns). (Debug/Windows/Modules)

    2. A right click (context menu) will get you to "Symbol Load information..." This will show you where the debugger looked for symbols for that assembly.

    3. If your late bound dll is optimized you may need to turn off "Just My Code". Tools/Options/Debugging/ "Enable just my code (Managed Only).

    Steve Steiner

    stevejs (at) microsoft.com


  • How can I debug a late-bound C# DLL in VS2005?