pholat pholat - 27 days ago 6
Bash Question

Windows batch equivalent to bash 'set -x'

Is there any way in Windows batch scripts to get debug information besides adding echo everywhere? I'm looking for bash 'set -x' equivalent on Windows machine.

Just using '-x' in cygwin and running Windows script from there doesn't output this data.

Answer

Put "@echo on" at the beginning of your script

At-sign an the beginning of the line suppress echo of this first line

Comments