pholat pholat - 1 year ago 99
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 Source

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

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download