如何使用 Visual C 进行调试Windows 7 x64 上的 6?

发布于 2024-08-18 20:52:26 字数 193 浏览 7 评论 0原文

当然答案是“你不能”或“使用 XP 模式”,但我想知道是否可能。

我遇到的问题是,每当我调试某个应用程序并命中断点时,当我停止调试器时,被调试者仍然卡住。它无法被杀死,我无法附加另一个调试器(它说它已经被调试)。在我关闭 Visual C++ 之前它不会消失。

这种情况发生在 Windows 7 64 位安装上。 VC 已安装 SP 6。

Surely the answer will be "you can't" or "use XP mode", but I'd like to know if it it possible.

The issue I have is that whenever I debug some application and hit a breakpoint, when I stop the debugger the debuggee remains stuck. It can't be killed, I can't attach another debugger (it says it is already being debugged). It won't go away until I close Visual C++.

This is hapenning on a Windows 7 64 bits install. VC has SP 6 installed.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

不语却知心 2024-08-25 20:52:26

我之前的修复非常糟糕。

最后,我开发了一个新的修复程序,可以与英文版的 Visual Studio 6 完美配合。(我认为是 SP6)

您需要检查位于“Common/MSDev98/Bin”中的文件 DM.dll 的版本,

正确的版本是 6.0 .9782.0。

链接:http://www.dr-hoiby.com/TLLOC.dll (28KB )

安装方法:将“Common/MSDev98/Bin/TLLOC.dll”替换为下载的版本。

此致。

My previous fix was horrible.

Finally, I developped a new fix, working perfectly with the english version of Visual Studio 6. (SP6 I think)

You need to check the version of the file DM.dll located into "Common/MSDev98/Bin"

The correct version is 6.0.9782.0.

link: http://www.dr-hoiby.com/TLLOC.dll (28KB)

how to install: replace "Common/MSDev98/Bin/TLLOC.dll" by the version downloaded.

Best regards.

千年*琉璃梦 2024-08-25 20:52:26

转发评论:

您可以尝试使用带有VC6编译器的Visual Studio 2008。我最近 对此发表了博客

Comment reposted:

You can try using Visual Studio 2008 with VC6 compiler. I recently blogged about this.

回眸一遍 2024-08-25 20:52:26

我为此开发了一个小解决方案。
您只需将文件“ShiftF5Fix.dll”复制到“Common/MSDev98/AddIns/”中,然后从 Visual 加载它。

这是一个巨大的修复。
如果您在调试期间修改了源文件,则在按“SHIFT+F5”停止进程后显示的弹出窗口中您必须回答“否”。

链接:http://www.dr-hoiby.com/ShiftF5Fix.dll

最佳问候

I developped a little fix for that.
You just have to copy the file "ShiftF5Fix.dll" into "Common/MSDev98/AddIns/" et load it from Visual.

It's an hugly fix.
If you modify your source file during debugging you have you answer "NO" to the poup displayed after you press "SHIFT+F5" to stop the process.

link : http://www.dr-hoiby.com/ShiftF5Fix.dll

Best regards

小红帽 2024-08-25 20:52:26

另一种选择是安装水仙花。
这是一个开源项目,用于在VS2010中编译所有版本的Visual Studio。
配置完成后,您可以使用 Visual Studio 2010 调试器来调试 VC6 项目。

Another option would be to install daffodil.
This is an open source project to compile all versions of visual studio in VS2010.
Once this is configured you can use visual studio 2010 debugger to debug VC6 projects.

扎心 2024-08-25 20:52:26

紧随 Holby 博士的脚步,我实现了一个更精简的变体,带有源代码:
http://www.algonet.se/~tamlin/TLLOC_fixer.zip

代码目前只理解sp4(?)和SP6,但我认为它会涵盖大多数情况。

您只需要编译源代码(1.cpp1.rc),重命名现有的TLLOC.DLL(顺便说一句,它代表 Transport将本地层(而不是远程调试)添加到 TLLOC.old.dll,然后放入您编译的文件 (~4KB)。应该可以满足所有 32 位调试需求,从 Windows 95 到 Windows 7(及更高版本)。

On the heels of Dr Holby, I implemented a leaner variant, with source code:
http://www.algonet.se/~tamlin/TLLOC_fixer.zip

The code currently only understands sp4 (?) and SP6, but I think it'll cover most cases.

You only need to compile the source (1.cpp, 1.rc), rename your existing TLLOC.DLL (which btw stands for Transport Layer Local - as opposed to remote debugging) to TLLOC.old.dll, and drop in the one you compiled (~4KB). Should work like a charm for all 32-bit debugging needs, from Windows 95 to Windows 7 (and later).

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