Re: What tools are useful for script debugging?

1999-01-02 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED],  [EMAIL PROTECTED] wrote:
Hi, folks

   The subject says it all.

Depends on the script language. With plain shell scripts I use
sh -x script to debug.

Mike.
-- 
Indifference will certainly be the downfall of mankind, but who cares?


Re: What tools are useful for script debugging?

1999-01-02 Thread Morgan Fletcher
[EMAIL PROTECTED] writes:
   The subject says it all.

Try the -x flag to bash - it's quite useful. Strace is also good, if you
don't mind sifting through a lot of information.

  $ bash -x myscript.sh
[...]
  $ strace myscript.sh | less
[...]

The above advice is based on the assumption you mean the sh/csh/tcsh/bash
shells. My personal choice is to use perl. If perl scripts need debugging,
the perl debugger (built into the perl interpreter) works great. Of course,
if all your stars are aligned and you're blessed with both perl  emacs on
your system, the emacs interface to the perl debugger is the best possible
solution.

Amen.

morgan
-- 
VVV
 M o r g a n   F l e t c h e rhttp://www.hahaha.org/morgan 
 Tibi gratias agimus quod nihil fumas.   [EMAIL PROTECTED]