Set CPU Register Values ​​When Debugging a Managed Application in Visual Studio

I am debugging a .NET application in Visual Studio 2010 RC using disassembly. The code is optimized and JIT-ed. At some point, I need to change the CPU ZR flag so that the JNE team uses a different path. For some strange reason, the register window in Visual Studio is read-only and does not allow me to change register values, nor can I use the "set next instruction" command to force myself to jump. Any ideas?

PS: Are there alternatives, for example, the command for the "command window"? I doubt that I would be able to do this from the "Immediate" window, since I do not think that .NET allows access to the register.

+7
debugging cpu-registers
source share
1 answer

I managed to debug and only in the "Immediate window":

EFL = (some value)

and it seemed to work.

+1
source share

All Articles