通过汇编语言程序步骤一个语句在一个时间 [英] Step through an assembly language program one statement at a time
问题描述
在Visual Studio 2010中,有没有可能通过汇编语言程序一个语句来一步一个脚印,才能看到节目中的每一行各变量的状态?我听说这是可能做到这一点,但我仍未能随时随地查找相关信息。
In Visual Studio 2010, is it possible to step through an assembly language program one statement at a time, in order to see the state of each variable at each line of the program? I've heard that it's possible to do this, but I haven't yet been able to find relevant information anywhere.
推荐答案
是的,你只需要使用调试器,你会与C / C ++ code,但在显示反汇编视图。如果没有可用的源代码,这是默认的。否则,你需要在上下文菜单中选择转到拆卸。
Yes, you just use the debugger as you would with C/C++ code, but in a view that shows the disassembly. If there is no source available, that's the default. Otherwise you need to select "Go To Disassembly" in the context menu.
您将需要调试信息,如果你想正确地检查变量,不过当然你可以看看寄存器,内存等,即使没有这一点。
You will need debug information if you want to inspect variables properly, though of course you can look at registers, memory, etc. even without that.
这篇关于通过汇编语言程序步骤一个语句在一个时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!