ILSpy debugger preview - 2

As promised, debugging single members is now possible. 

Basically, you select a member or a type, set breakpoints and start debugging.

When stepping in, you will obtain this:


There are some changes from the previous preview.

  • no more static code mappings. The code mappings are now properties in AstBuilder or ReflectionDisassembler (basically, there's an abstract class "BaseCodeMappings" that both AstBuilder and ReflectionDisassembler derive from);
  • the structure of the code mappings is more general in order to hold more than on type or member. The CodeMappings property holds the metadata token of the methods (normal methods, getters/setters of properties, add/remove methods of events) that are mapped and DecompiledMemberReference property holds the metadata token and the member reference (methods, properties, events and fields).
You can now test this (install ILSpy with the integratede debugger from the build server) and tell us what you think! 
Happy debugging the decompiled code!
Published Saturday, May 07, 2011 2:27 PM by Eusebiu
Filed under: ,


# re: ILSpy debugger preview - 2

Downloaded the binaries, but it crashes on launch for me with "System.BadImageFormatException".  I'm on Win 7 Enterprise, 64-bit.

When I run from source (VS2010) I get an error in Language.cs line 196:

Could not load file or assembly 'ILSpy.Debugger, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Thursday, May 12, 2011 10:21 PM by daughtkom

# re: ILSpy debugger preview - 2

Unfortunately, I can only test the preview on a Win 7 Ultimate and Win XP, both 32bit.

Monday, May 16, 2011 1:35 PM by Eusebiu

# re: ILSpy debugger preview - 2

If I compile with x86 (instead of Any CPU), the app loads.  I haven't tried using it yet, but at least it doesn't crash on launch.


Monday, May 16, 2011 10:36 PM by daughtkom