I am debugging a .NET application in Visual Studio 2010 RC using disassembly view. The code is optimized and JIT-ed. At a particular point, I need to change the ZR CPU flag so that the JNE instruction would take a different path. For some strange reason, the registers window in Visual Studio is read-only and does not let me change register values, nor can I use "set next instruction" command to force the jumping myself. Any ideas?
P.S.: Are there alternatives, like a command for the "command window"? I doubt I could do it from the "Immediate window" since I don't think .NET allows register access.
To open the Registers window Enable address-level debugging, by selecting Enable address-level debugging in Tools (or Debug) > Options > Debugging.
Click on the debug menu then go on registers.
i was able to debug and just in the "Immediate Window" do:
EFL = (some value)
and it seemed to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With