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
- 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.
- 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
- 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.
- On the remote computer, run Rmtdbg105.exe using the following syntax:rmtdbg105.exe [-listen [Hostname:]port] Where:
- 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.
- 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:
- Rmtdbg120.exe
- Rmtdbg120.exe-listen 8000
- Rmtdbg120.exe-listen somehost:8000
- 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
- On the remote computer, in the Windows taskbar, right-click the codegear remote Debugger Listener icon.
- In the shortcut menu, choose Exit.
Shutting down the Remote debug server does not affect active debugging sessions.
Delphi 2007 Remote Debugging