如何使用 Visual Studio 2010 调试任何程序?
当发生“未处理的异常”或其他程序错误时,Windows 为我提供了使用 Visual Studio 2010 调试程序的可能性。但是,我想使用 Visual Studio 2010 调试我用 VB6 编写的程序,即使它不会触发错误。我想查看汇编代码并逐步执行它,查看堆栈内容和类似的内容。这可能吗?
Windows offers me the possibility do debug a program with Visual Studio 2010 when an "unhandled exception" or another program fault occurs. However, I would like to debug a program I have written in VB6 with Visual Studio 2010, even when it does not trigger an error. I want to see the assembly code and step through it, view the stack contents and similar things. Is this possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
运行 ide 并附加进程。当您暂停调试会话时,您可能会看到程序集。
否则,您可以使用 ollydbg、ida 或此类反汇编工具来查看代码。
run the ide and attach the process. when you pause debugging session, you may see the assembly.
otherwise, you can use ollydbg, ida, or such dissassembles to view the code.
使用“调试”>附加到处理命令。
Use the Debug > Attach to Process command.
VB6 汇编没有意义,因为 VB6 是一种(有时)解释型语言。但是,如果您仍想执行此操作,Windows 调试工具 (WinDbg) 是完成此任务的更好工具。
VB6 assembly will not be meaningful, as VB6 is a (sometimes) Interpreted language. However, if you still want to do this, the Debugging Tools for Windows (WinDbg) is a far better tool for this task.