A.M. Hoornweg 144 Posted March 21, 2023 Hello all, I'm having the worst of times trying to get remote debugging to work between a VMWare virtual machine (running Delphi 11.3, Windows 11 prof) and the host machine itself (Also Windows 11). I have disabled the firewalls on both the host machine and the VM so these won't interfere. I've installed PAServer of Delphi 11.3 on the host machine, then started PAServer, not specifying a password. In the VM I start Delphi, select Run -> Attach to process -> then select "Embarcadero Windows 32-bit debugger" -> Remote machine. I create a new profile that connects to the host machine using the correct IP address, press "test connection" and it says "connection succeeded". So far, so good. But when I press "Finish", Delphi freezes for a while, then says "unable to connect to remote host". I've also tried starting both PAServer and Delphi as administrator. It makes no difference. The remote debugging functionality seems totally broken. And by the way - how does one *delete* PAserver profiles? The drop-down list is getting full and I want to get rid of them. Share this post Link to post
programmerdelphi2k 237 Posted March 21, 2023 (edited) Profiles on Registry -> \HKEY_CURRENT_USER\SOFTWARE\Embarcadero\BDS\22.0\RemoteProfiles try this: remote target test if any app dont block the ip/port for your tests ( "netstart -a" ... or any other tools for tests) test if any user can read/write files, etc... on disk install PAServer, let it running in a port (ex. 65000) - normally, no needs Admin computer with Delphi (the same or remote ) run Delphi, and open your app for debugging... normally, no need Admin too! define the profile: IP/Port with IP from remote target + platform run your project with debug... You should see a console window of "RMTDBG280", which will run and link to your Delphi session, so if you close this window the IDE may freeze, so you will have to close the IDE via TaskManager. when compiling the project you may see the following line in the Delphi message window: "C:\<<Delphi folder>>\PAServer32\rmtdbg280.exe -listen" NOTE: after run in debug mode, and close the app... my "RMTDBG280" console window does not close... if I close it, in the next run-debug mode my IDE froze ... 🙂 If you are unable to open the RMTDBG280 console, then it might be the reason for your frozen IDE. I installed PAServer on the same MSWindows running Delphi, and no debugging problems were found... it was possible to debug the project, even using the same 64bit desktop. scratch dir in the same pc: C:\Users\<<WIN user>>\AppData\Roaming\Embarcadero\PAServer\scratch-dir\WIn10H22-Win64Local2\Project1\...my exe + rsm files NOTE: pay attention in the taskbar with RMTDBG icon... there you can close with sucess your console! Edited March 21, 2023 by programmerdelphi2k Share this post Link to post
programmerdelphi2k 237 Posted March 21, 2023 another thing, PAServer is a INDY app :) Share this post Link to post
A.M. Hoornweg 144 Posted March 22, 2023 I de-installed and re-installed PAServer on the host machine and re-started the computer several times. Now, all of a sudden, the connection succeeds! Share this post Link to post