Delphi 2007 Remote Debugging

Source: Internet
Author: User

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 beg In 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 is available on the remote computer before you begin Debuggin G. This includes executables, DLLs, assemblies, data files, and PDB (debug) files.
    • In addition to the port, the Remote debug server listens on, a connection are opened for each application so is being Debugged. Additional port numbers is chosen dynamically by Windows; A firewall that's allows connections to the listening port would 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 authe Ntication support. Therefore, the remote debug server should not being run on a computer so can be accessed over the network by untrusted Clie Nts.

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) was already available, by default, Atc:\program Files\codegear\rad St Udio\6.0\bin.
  2. Copy Rmtdbg105.exe from the RAD studio\bin directory in 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 is 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:p ort.
    2. Port is a 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 debugging server is started, it 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.

Delphi 2007 Remote Debugging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.