如何使用 Visual Studio 2010 调试任何程序?

发布于 2024-12-09 16:07:17 字数 156 浏览 1 评论 0原文

当发生“未处理的异常”或其他程序错误时,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

当爱已成负担 2024-12-16 16:07:17

运行 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.

铁憨憨 2024-12-16 16:07:17

使用“调试”>附加到处理命令。

Use the Debug > Attach to Process command.

墨小沫ゞ 2024-12-16 16:07:17

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文