• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

delphi 2007 远程调试

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

Remote debugging lets you debug a RAD Studio application running on a remote computer. Once the remote debug server is running on the remote computer, you can use RAD Studio to connect to that computer and begin debugging. 

Prerequisites and security considerations for remote debugging

  • The local and remote computers must be connected through TCP/IP.
  • All of the files required for debugging the application must be available on the remote computer before you begin debugging. This includes executables, DLLs, assemblies, data files, and PDB (debug) files.
  • In addition to the port that the remote debug server listens on, a connection is opened for each application that is being debugged. Additional port numbers are chosen dynamically by Windows; a firewall that only allows connections to the listening port will prevent the remote debugger from working.

Warning: The connection between RAD Studio and the remote debug server is a simple TCP/IP socket, with neither encryption nor authentication support. Therefore, the remote debug server should not be run on a computer that can be accessed over the network by untrusted clients.

To install and start the remote debug server

  1. If RAD Studio is installed on the remote computer, skip to step 4. In this case, the remote debug server (rmtdbg105.exe) is already available, by default, atC:\Program Files\CodeGear\RAD Studio\6.0\Bin.
  2. Copy rmtdbg105.exe from the RAD Studio\bin directory on your local computer to the directory of your choice on the remote computer. If you are debugging a managed application, also copy dbkpro<nnn>.dll
  3. If you are debugging a managed application, register dbkpro<nnn>.dll on the remote computer by running the regsvr32.exe registration utility. For example, on Windows XP, enter C:\Windows\System32\regsvr32.exe dbkdebugproide<nnn>.bpl at the command prompt.
  4. On the remote computer, run rmtdbg105.exe using the following syntax: rmtdbg105.exe [-listen [hostname:]port] where:
    1. hostname is an optional host name or TCP/IP address for binding to a particular host, for example, somehost or 127.0.0.1. If you specify hostname, you must also specify :port.
    2. port is an optional (required if hostname is specified) port number or standard protocol name, for example, 8000 or ftp. If omitted, 64447 is used as the port number. Examples:
    3. rmtdbg120.exe
    4. rmtdbg120.exe -listen 8000
    5. rmtdbg120.exe -listen somehost:8000
    6. rmtdbg120.exe -listen 127.0.0.1:8000

After the remote debug server is started, its icon appears in the Windows taskbar.

To shut down the remote debug server

  1. On the remote computer, in the Windows taskbar, right-click the CodeGear Remote Debugger Listener icon.
  2. In the shortcut menu, choose Exit.

Shutting down the remote debug server does not affect active debugging sessions.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
DELPHI实现关闭指定进程,自身防杀发布时间:2022-07-18
下一篇:
如何显示内存流中多个图片delphi发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap