I was wondering if there is an IDE that would allow me to define an ssh connection to a remote host, connect, and locally debug a script running remotely (kind of like you can debug a remote Java app in Eclipse)? I want to be able to go line by like and examine vars and all that.
An easy way to improve the tracing output is the following code fragment:
This will show you:
see also wiki page for c42-common-functions
An alternative is bashdb:
an IDE for debugging bash scripts? I don't see how a graphical GUI would help to ssh into a host and present you a cli output of a script. Also I don't know of a bash debugger you can run script inside of. but you are not specifying which kind of shell script you are talking about.
if it is bash, then you can use the
so you can enable it straight on the shebang with
or use set to enable/disable tracing
you can also pause your script with
ENV vars can be found in
forget GUI for making your life easier. GUI is for users and consumers.