如何从头开始在Delphi 7中进行DLL的远程调试 [英] How to do remote debugging of DLL in delphi 7 from scratch

查看:125
本文介绍了如何从头开始在Delphi 7中进行DLL的远程调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我解决如何独立于exe的DLL(只是dll)进行远程调试。
dll是一项将在服务器计算机上运行的服务,而DLL源代码在客户端计算机上。现在,当此服务在服务器计算机上运行时,我想使用delphi 7调试在客户端计算机上的delphi代码。

can anyone please help me out, to how to do remote debugging of a DLL (Just a dll) which is independent of the exe. The dll is a service which will be running in the server machine and the DLL source code is at the client machine. Now when this service is running at the server machine i want to debug the delphi code which is at the client machine using delphi 7.

推荐答案


  1. 使用远程调试符号编译DLL并将两者(.dll,.rsm等)部署在服务器计算机上

  2. 在服务器上安装远程调试器计算机

  3. 在服务器计算机上启动远程调试器

  4. 在客户端计算机上启动Delphi并加载DLL项目

  5. 通过选择运行-附加到进程并填写服务器计算机,从Delphi启动远程调试会话

  6. 在加载了DLL的服务器计算机上选择进程

  7. 调试远程

  1. Compile the DLL with remote debugging symbols and deploy both (.dll, .rsm, etc) on the server machine
  2. Install the remote debugger on the server machine
  3. Start the remote debugger on the server machine
  4. Start Delphi on the client machine and load the DLL project
  5. Start a remote debugging session from Delphi by choosing Run - Attach to process and fill in the server machine
  6. Select the process on the server machine which loaded the DLL
  7. Debug remote

另请参见 http://delphi.wikia.com/wiki/Remote_Debugger

这篇关于如何从头开始在Delphi 7中进行DLL的远程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆