neuromancer
neuromancer

Reputation: 55469

How to debug a dll

I'm having problems with a dll that I downloaded from somewhere. How can I look inside the dll to debug it?

Upvotes: 0

Views: 538

Answers (4)

bitbonk
bitbonk

Reputation: 49599

If it is a managed dll you can debug it with .NET Reflector Even without the symbols and without the source code. There you can

  • Decompile third-party assemblies from within VS
  • Step through decompiled assemblies and use all the debugging techniques you would use on your own code

Upvotes: 1

VoodooChild
VoodooChild

Reputation: 9784

You can use a program like DLL Export Viewer to view DLL files.

But as lulian pointed out you can not debug it, unless you have sources or pdb file...

Upvotes: 1

Ash
Ash

Reputation: 62096

You don't say, but if it's a .NET assembly dll you could use the disassembly tool in Reflector to view reversed source code.

Upvotes: 2

INS
INS

Reputation: 10820

If it doesn't have debug information then it's no use (usually DLLs are shipped in the "Release" version - which usually means that Debug information is not available). In order to actually debug you must also have the sources.

Upvotes: 1

Related Questions