Delphi 远程调试器冻结
我有运行 Delphi 2007 应用程序的 Windows Server 2008 R2 计算机。 更新:当前无法切换 Delphi 版本。我有 Delphi XE,但在进行任何切换之前需要检查超过 300,000 行代码。
我遇到了一个问题,我想单步执行代码。我不想在机器上安装Delphi,所以我安装了远程调试器。
更新了步骤,使其更加完整:
- 使用远程调试符号编译应用程序
- 将应用程序和远程调试符号复制到远程位置。
- 在远程计算机上启动命令提示符(以管理员身份运行)。
- 为 rmtdbg105 进程启用服务器防火墙例外。
- 在命令提示符中运行 rmtdbg105 -listen
- 我运行我想要调试的进程。
- 在我的本地计算机上,我选择附加到进程并选择远程进程。
- 观察到的压接
行为: 远程进程锁定并停止运行,我的机器上的 Delphi 也是如此。
我已经等了几分钟,以防万一它是由某种类型的网络性能问题引起的。
我缺少步骤吗?我正在寻找一种方法来让它发挥作用。
I have Windows Server 2008 R2 Machine that is running a Delphi 2007 application. Update: Switching Delphi versions is currently not an option. I have Delphi XE but there are over 300,000 lines of code to review before any switch can occur.
I have run into a problem where I would like to step through the code. I don't want to install Delphi on the machine, so I have installed the remote debugger.
Updated steps to be more complete:
- Compile app with Remote Debug Symbols
- Copy Application and Remote Debug Symbols to Remote Location.
- Launched an Command Prompt (Running As an Administrator) on the Remote Machine.
- Enabled Server Firewall exception for rmtdbg105 process.
- Run
rmtdbg105 -listen
in the Command Prompt - I run the process I want to debug.
- On my local machine I select attach to process and select the remote process.
- Press Attach
Behavior observed:
Remote Process locks up and stops running, and so does Delphi on my machine.
I have waited several minutes just in case it caused by some type of network performance problem.
Is there step I am missing? I am looking for a way to get this to work.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
返回到 Delphi 7,或升级到 Delphi XE,然后重试。 [升级到 XE 可能需要一些工作,因为您需要将源代码移植到 unicode delphi 语言级别。]
我从来没有让 Delphi 2007 远程调试可靠地工作。当我使用 Delphi 2007 时,您所看到的死机现象也是我所记得的。我发现最近重新启动 PC 后,死机的情况就会减少。重新启动后,您可能会再使用几次,然后才需要再次重新启动。
Move back to Delphi 7, or up to Delphi XE, and try again. [Moving up to XE might be a bit of work, because you need to port your sources up to unicode delphi language level.]
I never did get Delphi 2007 remote debug to work reliably. The freeze-ups you see are something I remember too, when I was using Delphi 2007. I found that it froze less often when the PC had been rebooted recently. After a reboot you might get a few more uses, before you need to reboot again.
您是否从特权控制台运行远程调试器?还要根据 Delphi bin 目录中的调试器文件检查调试器文件,IIRC 某些文件已通过补丁更新,但远程调试器安装程序未更新。也尝试使用更新的文件。
无论如何,2007 调试器在 7 下有问题,我猜它在 2008 R2 下也可能有问题,有一个 不受支持的补丁从 Embarcadero 网站,也可以尝试一下。
Did you run the remote debugger from a privileged console? Also check the debugger files against those in Delphi bin directory, IIRC some files has been updated by a patch, but the remote debugger installer wasn't. Try to use the updated files as well.
Anyway the 2007 debugger has issue under 7 and I guess it may have as well under 2008 R2, there is an unsupported patch from Embarcadero site, try that too.