C + + Builder Xe2 (Embarcadero rad Studio) Remote debugging also works for Delphi Remote debugging tutorials

Source: Internet
Author: User

reproduced: http://www.cnblogs.com/zhangdongsheng/p/3411056.html

Every time to remote debugging to see a half-day xe2 English help document, today just a bit of time, write it down.

First, overview:

First of all, C + + Builder remote debugging in two ways, one is called the old-fashioned debugging method, this method is installed on the remote machine debugger That is, actually running Paserver Rmtdebug163.exe to run debugging, but this method seems to only start the process of debugging the program, and can not attach the existing process. And today I'm talking about new remote debugging, and it's not just for debugging, but for cross-platform development. The original name is: The new remote and Cross-platform debugging solution, it is a platform Assistant and a remote profile to achieve the purpose of long-distance debugging.

This article is to take C + + Builder Xe2 as an example, but most of the content also applies to Delphi Xe2 and can easily be extended to Xe3 Xe4 and other versions.

Second, have the condition

Since the Embarcadero RAD Studio Remote Debugging is based on the socket communication.

So the debug machine and the debug machine must be network connectivity, the debug machine on the development machine on the generated debug information Symbol file *.tds (Delphi is *.RSM).

Executable (*.exe or *dll) you must copy to the debug machine after you compile the build

III. deployment

1. First install the paserver on the remote machine (the machine on which the program is being debugged). My installation files are in D:\Program files (x86) \embarcadero\rad Studio\9.0\paserver\setup_paserver.exe

2. After being installed on the debug machine, run Paserver.exe, the command prompt interface debugging will let you enter the password, if you do not set the password directly press ENTER.

3. On the debug machine, on the C + + Builder Xe2, click menu->tools and then open the Find Remote Profiles window as shown in

Click Add to add a remote profile to fill in the following items
ProfileName: It's just a name, I write it as teet.
Platform: Choose your program to run the platform such as win 64 or Win 32, iOS x, etc.

Then the next step: hostname fill in the IP address of the machine being debugged, PortNumber: The default, the password below is the password you just set on the debug machine at that command prompt. Then click Test Connection Tests if OK, continue to the next step after the direct finish. Complete the following as shown, then click OK.

Well, a remote profile will be added. The following can be debugged.

Four, commissioning

1. Attaching a process that is already running

Click menu Run->attach to process Press Select

The process on the remote machine is displayed after the operation, so the remote attach debugging process is implemented. Here is a point, if you want to debug the source code and to set breakpoints in the source code, you must compile the debug information generated at the time of the symbol file copied to the debug machine.

2. Remote creation of the debugged process

Click on the menu Run->load process on the left, select remote and set up remote path (the debug program all paths on the remotely debugged machine) and remote host (the method of selecting host with above). Params and working directory are set to the command line and working directory, following after load according to their own needs to choose the

C + + Builder Xe2 (Embarcadero rad Studio) Remote debugging also works for Delphi Remote debugging tutorials

Related Article

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.