Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 254
pholat Avatar asked Nov 07 '16 10:11

pholat


1 Answers

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

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

like image 149
user2956477 Avatar answered Nov 05 '22 16:11

user2956477