2

Say I have the following CIL:

ldc.i4 40 <- a breakpoint is set here
ldc.i4.2
add
box int32
call void [mscorlib]System.Console::WriteLine(string)

I then use ilasm /debug main.il to assemble the exe and pdb files to use in mdbg.


My question is, when I'm at say line 3, before the add operation is executed, I would want to see the evaluation stack which would show me the two int32 constants, 40 and 2, which I had loaded before.

How can I view this evaluation stack in mdbg?

svick
  • 236,525
  • 50
  • 385
  • 514
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360

1 Answers1

2

I found the command that's needed to view the evaluation stack while debugging in mdbg: p[rint].

p[rint]       prints local or debug variables
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360