IL level code debugger

后端 未结 5 1483
醉话见心
醉话见心 2020-12-29 20:54

Is there any IL level debugger in form of a VS plugin or standalone application?

Visual studio’s debugger is great, but it allows you to debug on either HLL code lev

5条回答
  •  青春惊慌失措
    2020-12-29 21:29

    The best way to do this is to use ILDASM to disassemble the managed binary, which will generate the IL instructions. Then recompile that IL source code in debug mode using ILASM, when you fire up the Visual Studio debugger you will be able to step through the raw IL.

    1. ildasm foo.exe /OUT=foo.exe.il /SOURCE
    2. ilasm foo.exe.il /DEBUG

    I've written a blog post about this topic at: How to debug Compiler Generated code.

提交回复
热议问题