简体   繁体   中英

Set CPU register values while debugging a managed application in Visual Studio

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?

PS: 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.

i was able to debug and just in the "Immediate Window" do:

EFL = (some value)

and it seemed to work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM