简体   繁体   English

在Visual Studio中调试托管应用程序时设置CPU寄存器值

[英]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.

相关问题 为什么Visual Studio在调试时停止? - Why does Visual Studio stall while debugging? 在调试时忽略Visual Studio中的项目 - Ignore a Project in Visual Studio while debugging 如何在Visual Studio中调试时强制执行异常? - How to force an exception while debugging in Visual Studio? 在Visual Studio 2015中调试时值不正确 - Incorrect value while debugging in Visual Studio 2015 在调试时将元素添加到集合中(Visual Studio) - Adding an element to a collection while debugging (visual Studio) 当目标平台设置为 x64 而不是任何 Cpu 时,Visual Studio ASP.Net 应用程序无法启动 - Visual Studio ASP.Net Application not starting when Target Platform is set to x64 instead of Any Cpu Visual Studio 2008:调试托管代码时,下一行的步骤非常慢 - Visual Studio 2008 : Step to next line is very slow when debugging managed code 在Visual Studio 2008中为.Net托管应用程序调试WinDbg中的.dmp文件 - Debugging .dmp files from WinDbg in Visual Studio 2008 for .Net managed apps Visual Studio(VS2008)中的远程调试,Windows窗体应用程序 - Remote Debugging in Visual Studio (VS2008), Windows Forms Application 在 Visual Studio 中调试接受命令行 arguments 的 Windows Forms 应用程序 - Debugging Windows Forms application that accepts command line arguments in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM