ilrepl
An interactive CIL REPL with a live evaluation stack
il[1]> ldc.i4 6 ┊ [int32] il[1]> ldc.i4 7 ┊ [int32, int32] ◂ top il[1]> mul ┊ [int32] il[1]> ret = 42 : int32
stackTyped, and shown after every instruction, for every opcode. Stack errors are caught at the prompt.
.classTypes and methods that persist across cells. A struct shows its fields; a static keeps its value.
.disReads any method back, the framework’s or your own, with the stack after each instruction.
.editOpens an editable copy of any method. .diff shows what changed, in the IL or in the native code.
.jitShows the machine code the JIT made for a method, yours or the framework’s. –against compares two.
.saveWrites the types, the methods, and the cell to disk as an assembly. .il prints them back as ILAsm.
dotnet tool install -g ilrepl