Debugging with no source

No Source? No Problem.

Well-known decompilers are .NET Reflector, ILSpy. These will restore the source code from .NET dll or exe files (aka assemblies). You can even save the decompiled source as a csproj.

One step further

A newer tool called “dnSpy” https://github.com/0xd4d/dnSpy lets you debug and edit .NET assemblies! (you can attach to a running process as well as launch them)

Tip: debugging webapps running in IISExpress: You need to view the debug output from Visual Studio and find your dll in that list (because IISExpress copies the dlls to temp locations). Many times when the debugger isn’t stopping on the breakpoint, it’s because the dll you have chosen is not the right copy.

Fun fact: dnSpy uses the same engine as ILSpy to decompile

Here it is in action:

"dnSpy in action"

get yourself on the email list

//Powered by MailChimp - low volume, no spam

comments powered by Disqus