Recent

Author Topic: Remote debugging on Raspberry (from Windows)  (Read 3026 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Remote debugging on Raspberry (from Windows)
« Reply #15 on: May 18, 2022, 08:54:15 am »
If this is possible, how do I have to setup the Lazarus/FPC inside the VM? Has anybody done this ... ?
I think, your setup will be similar to mine.  Though you should install the Linux version of gdb-multiarch.  Copying executable by Lazarus didn't work for me (Windows to RasPi), so I uploaded it with a scp client; it should work in Linux also.

scp or sftp, but since I'm always very hesitant about setting up keys etc. I'd rather not get into detail there.

I'm fairly confident that debugging using gdbserver will work over an exposed socket, but since my experience is that (as I've said) the RPi is adequate for native development- or at least for compilation and debugging after the bulk of development has been done on a PC with Subversion etc. as a common resource- that I've got little inclination to get into the cross-tools required.

Hence my cryptic late-night comment.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

att2

  • Jr. Member
  • **
  • Posts: 52
Re: Remote debugging on Raspberry (from Windows)
« Reply #16 on: June 26, 2022, 12:28:15 am »
So, what, exactly, are the steps of installing software on the VM and on the Odroid C2/C4 that I have to do so I can
* cross-debug the application on the VM and live single-step as in the normal debugger, etc. ?

MarkMLl

  • Hero Member
  • *****
  • Posts: 6676
Re: Remote debugging on Raspberry (from Windows)
« Reply #17 on: June 26, 2022, 09:28:26 am »
The way I usually do it its to put Lazarus on the target system and run it over an SSH tunnel. That might assume that your desktop system is also running Linux.

Another alternative with similar prerequisites is something like Xnest or Xephyr.

On a number of occasions (in the distant past) I've seen those perform badly since some versions of Lazarus polled input devices excessively (as did e.g. Mozilla at the same time, suggesting it was a lower-level problem). In those cases VNC has been effective, although that's not my favoured solution since C&P etc. can be a problem.

I presume that Odroids still run Linux, so none of the above should be a challenge and you'll be familiar with Linux configuration etc.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018