Delphi debugging on linux
Installing Development Packages
> sudo apt update && sudo apt install joe wget p7zip-full curl openssh-server build-essential
zlib1g-dev libcurl4-gnutls-dev libncurses5
Preparing Your Linux Machine
To create Linux applications, you need to add a virtual machine PAServer:
1. Find the LinuxPAServer21.0.tar.gz file in the following location:
C:\Program Files (x86)\Embarcadero\Studio\21.0\PAServer\LinuxPAServer20.0.tar.gz
2. Unpack the LinuxPAServer21.0.tar.gz file.
> tar -xzvf ./LinuxPAServer21.0.tar.gz
##non credo si usare la libreria zlib al momento in delphi##
To use the System.zLib unit on Ubuntu:
1. Install the zLib-devel library to your Ubuntu machine with the following command:
> sudo apt-get install zlib1g-dev
Prima dello step 2, configura un profilo di connessione su delphi, e poi avvia il pa-server sulla
macchina linux
2. Update the local SDK cache (tools->options->deployment->sdk manager->(seleziona
ubuntu e poi in basso a dx Update local file cache))
##fine non credo si usare la libreria zlib al momento in delphi##
Creating a Connection Profile
1. Sulla macchina linux, andare dove ho estratto il file .gz ed eseguire il comando
./paserver
2. On the Tools > Options > Deployment > Connection Profile Manager page, click
the Add button. The Create a Connection Profile wizard opens.
3. On the Profile information page, enter the following:
○ In the Profile name field, enter the needed name.
○ In the Platform field, click the 64-bit Linux platform.
○ Click Next.
4. On the Remote machine information page, enter the following:
○ In the Remote machine field, enter the IP address or Machine name.
○ Click Test Connection to check if the values are valid.
5. Click Finish.
Adding the Installed SDK to RAD Studio
1. On the Tools > Options > Environment Options > SDK Manager page, click the
Add button.
2. In the Add a New SDK dialog, enter the following:
○ In the Select a platform field, click 64-bit Linux.
○ In the Select a profile to connect, select a created profile from the
drop-down list.
○ In the Select an SDK version field, the name of the SDK that you just
installed will automatically appear. If you have not installed SDK previously,
you can do it on this step. If you have already installed SDK, move on to the
next step.