Fun day today trying to get remote debugger consistently working on a Raspberry Pi VM. It has been quite random i.e. would work a few times and then fail and is now failing, period. Setup\process is as follows:
Win 10 running Xojo 2022 r4.1
WMware on the same machine, running Raspberry Pi (v 5.10) in an x86 32-bit container.
Have installed libunwind8 on the Pi.
Win10: Using the sample Xojo Notes project (desktop version), selected Linux build and set architecture to x86 32 bit to match VM OS.
Pi:Fired up stub (unpacked from Remote Desktop Debugger 2.5 - Linux 32-bit.zip). Server Status: Listening on port 44553, though it did once displayânot listeningâ. In both cases, a PortQry scan (from Win10) showed âListeningâ for TCP and âListening or Filteredâ for UDP, on 44553.
Win10: Launched ârun->remotelyâ to Pi (static IP)
Win10: And Xojo throws up: âFailed to connect properly. The remote debugger stub could not be reached on the target computerâ followed by âunable to initiate remore debug sessionâ.
Any observations or thoughts on options to try (have uninstalled and re-installed the remote debugger) would be much appreciated.
Try unchecking the auto launch option in the debugger and then run remotely and when the IDE switches to âwaitingâ launch the app manually from a terminal window. If there are any issues, theyâll show up there.
If heâs getting the âFailed to connect properly. The remote debugger stub could not be reachedâ error it seems unlikely heâll ever get to the âwaitingâ part.
@Shane_Dark - any firewalls involved? Try turning them all off.
Right, in that case, if itâs working initially and then failing later, there was an issue in the IDE which limited the number of connections that could be made. Try quitting the debugger on the pi and restarting it.
Yes, I have to do this once an hour or so when doing remote debugging (Windows target), usually after a compile error. Itâs been this way for decadesâŠ
I am unfamiliar with VMWare on Windows (I use VMWare Fusion on Mac), but Iâd be curious about the IP address that the debugger stub is reporting, and whether the IDE âseesâ it.
On Fusion, one sets the VM network connection to either âshare with the Macâ, or to obtain an address on the userâs LAN. In my experience, setting it one way or the other has been known to make a difference.
Edit: on my Mac VMs, recently things have worked best if I assign static IP addresses to the VMs.
Thanks everyone for your suggestions. @Jerry_Fritschle@Greg_O IPs (all same subnet) are DCHP assigned and then reserved, so yes, effectively static. Interestingly, rebooting the Pi VM (using VMWare on Win 10) doesnât necessarily resolve the issue but rebooting the host PC seems to. @Julia_Truchsess thanks, helpful to know itâs probably not to do with my dev setup. Will try looking at traffic between Xojo and the debugger stub with Wireshark when I get time.
The Xojo Remote Debugger on macOS and WIndows does a lot of debug logging - I would assume the same is true on Linux OS - does anyone know where the linux log files are located?
Do you know where the Windows logs are located? Thinking they might have something useful to indicate why setup of a debug connection session to the Pi stub is failing.