alternate to set -x in csh scripts

hi all

i want to debug a csh script and i give set -x for that but i get an error.

is there any command similar to set -x for csh scripts?

According to here you can do "set printexitvalue" in tcsh. Every time a function or command returns, tcsh will print the exit value for you. It's not exactly set -x, but it would aid in debugging. TCSH is a freely installable version of csh.

Caveat emptor: I don't use tcsh.

Hi.

On the first screen of man tcsh:

       -v  Sets the verbose shell variable, so that command  input  is  echoed
           after history substitution.

       -x  Sets  the  echo shell variable, so that commands are echoed immedi-
           ately before execution.

which, combined with the suggestion from otheus should provide a lot of debugging help.

The man pages, Google, and Wikipedia are your friends ... cheers, drl

Man page? WTF is a man page? :wink: