Can't get the remote debugger for Delphi 2007 to work correctly?

I followed these instructions when trying to get remote debugging that works with Delphi 2007. After completing all the steps, the remote debugger works halfway.

It can start and stop the application, but the breakpoints that I set do not work. An automatic breakpoint (in the Application.Initialize; line) works, but it goes straight to the CPU window. No debugging information.

I checked three times: “Enable TD32 debugging information” and “Enable remote debugging symbols” are checked, a clean build has been completed, and the correct files have been moved to the remote machine.

What am I missing?

Any help would be greatly appreciated.

+4
source share
2 answers

What are the correct files? I assume both .exe and .rsm files?

(disclaimer: I only know remote debugging in D2009)

+1
source

You may need to go through my own controller, which is as follows. I hope this is not too patronizing, but there may be a step that you omitted. I also remind you that it was not practical to use IP addresses rather than names. Also note that these instructions are for D7, so I don’t know that the principle has changed.

=======

In this description, TARGET refers to the machine being debugged (i.e., the remote machine), and HOST refers to the machine used for debugging (i.e. the local machine).

  • If necessary, install the remote debugger on the target by copying the RDEBUG folder to the target and running SETUP.
  • Run the remote debugger locally on the target computer using Start | Remote Borland Debugger | Remote debugger. The spider icon should appear on the taskbar. (It may be useful to double-click this icon to get the connection status dialog box - this shows how the local IDE connects to the remote device in the next steps here).
  • Blast the project on the host machine for debugging. Make sure this compiles locally and works autonomously.
  • By agreement, copy the SOFTWARE ROOT folder from host to target. This will be the working folder for the application during debugging. By copying the entire folder, all support files will be found locally as needed. (This also works great with SecondCopy to duplicate the entire ART software tree on a remote computer, and then to explode the project you want - this will create a remote folder for you).
  • In the Delphi development environment on the local computer, use Run | Options | Remote to set the Remote Path to the remote exe file in the folder just copied, as it will be visible on the target machine. If you copied it as indicated in "4", this path will be identical to the file that the local IDE will create and debug, for example, "C: \ Art_Soft \ RT290 \ Bench \ Dev4all \ RT290w.exe"
  • In the Delphi development environment on the local computer, use Run | Options | Remote to set the remote host to the target IP address (you must use IPCONFIG for the target to find out what the IP address is). Before exiting the dialog box, select "Debug project on remote machine."
  • Enable "Enable Remote Debugging Symbols" in the "EXE and DLL Settings" panel under "Project | Options | Linker"
  • Compile and run the file from the IDE. The status of the remote connection should indicate the progress of the connection, and the remote screen should indicate the running application.
+4
source

All Articles