On 07/19/2016 08:22 AM, Sam Neaves wrote:
> If I ssh into a remote server and run prolog, then edit('
myfile.pl <
http://myfile.pl>'). I enter vim on the remote machine, is there a way to change this so that I go into the normal prolog editor (pce emacs) on my local machine? Also for debugging and tracing in the gui?
>
Sam,
I use the same "ssh -X" trick as suggested by Carlo. In cases were I have good internet connection, this works fine for graphical editing, debugging and tracing. I typically have my swi-prolog http server running in an environment such as "screen" or VNC so I can leave the server running and still easily access it remotely. This allows you to use the GUI to trace, debug, modify, and update your http server without taking it down.
Alternatively, I check in my server code into git, check it out, debug, fix and test locally, check in the fixes, check out on my server, run 'make/0' in the swi-prolog command line interface on the server, and also have a fixed server without ever taking it down. I'm still amazed how easy this is in Prolog compared to the traditional edit, recompile, restart server cycles I still see a lot around me!
hope this helps,
Jacco