[Gambas-user] New experimental feature : "remote" debugging
g4mba5 at gmail.com
Wed Oct 20 14:52:39 CEST 2021
Le 20/10/2021 à 14:33, Linus via User a écrit :
> Hi Benoit,
> Just a little point, can you explain quickly how to use this feature please.
> I understand that is for debug a remote process, as you said not started
> by the IDE, but not able to use this feature.
> Thank you
> Olivier Cruilles
You click on the "Run remotely" menu.
Then the IDE will wait for the first process that talks to him.
Then you run the process that you want to debug, and it will contact the
IDE provided that the process is from the same project as the project
opened in the IDE.
At the moment, the link relies on a symbolic link having the name of the
project inside, as explained in the git log.
Note that this may change in the future, by adding a key inside the
executable shared with the IDE. But this may not be backward-compatible.
During remote debugging, the debugged process is watched by looking at
its entry in the '/proc' directory, to detect its end.
This is not reliable and Linux specific. Apparently there is no reliable
solution on Unix to detect the end of a process that is not a child process.
If someone have any information about that problem on other Unix system,
he is greatly welcome!
Maybe the solution will be using a lock on a file, because locks are
automatically released when a program ends.
More information about the User