What do people do in general to be able to debug a random DLL? I've got a few packed DLLs that I'd like to unpack. I might be able to track down the program they go with, and catch them on load there, but at least part of it is a driver, and going back and forth between the kernel and userland probably won't be fun. But if I can't, how does one usually load a DLL in order to debug it? Will a C program that simply does a LoadLibrary do it, or is it harder than that? Pointers to reading on the subject welcome. I prefer to debug in IDA Pro or Ollydbg if possible.






