[英]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. 我正在使用反汇编视图在Visual Studio 2010 RC中调试.NET应用程序。 The code is optimized and JIT-ed. 代码经过优化和JIT编辑。 At a particular point, I need to change the ZR CPU flag so that the JNE instruction would take a different path. 在某一特定点上,我需要更改ZR CPU标志,以便JNE指令采用不同的路径。 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. 出于某些奇怪的原因,Visual Studio中的寄存器窗口是只读的,不允许我更改寄存器值,也不能使用“set next instruction”命令来强制跳转。 Any ideas? 有任何想法吗?
PS: Are there alternatives, like a command for the "command window"? PS:有没有替代品,比如“命令窗口”的命令? I doubt I could do it from the "Immediate window" since I don't think .NET allows register access. 我怀疑我能从“立即窗口”做到这一点,因为我不认为.NET允许注册访问。
i was able to debug and just in the "Immediate Window" do: 我能够调试,只是在“立即窗口”做:
EFL = (some value)
and it seemed to work. 它似乎工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.