Debugging bash scripts on remote hosts using Eclipse

After installing the two plugins
it is very easy to debug scripts inside your workspace on your computer. But i was wondering, if this can work on a remote host, too.

So what has to be done?

Only these steps:
  • copy your shell scripts AND _DEBUG.sh onto your remote host
  • change the first line of _DEBUG.sh from
    exec 33<>/dev/tcp/localhost/33333
    exec 33<>/dev/tcp/host_running_eclipse/33333
After that start the debugger in eclipse and then run the shell script on the remote host. Done.

If this does not work: Check for firewalls blocking port 33333

Keine Kommentare:

Kommentar veröffentlichen