How can I debug a .BAT script?

后端 未结 11 1312
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 09:42

Is there a way to step through a .bat script? The thing is, I have a build script , which calls a lot of other scripts, and I would like to see what is the order in which th

11条回答
  •  醉酒成梦
    2020-11-28 10:11

    Did you try to reroute the result to a file? Like whatever.bat >log.txt

    You have to make sure that in this case every other called script is also logging to the file like >>log.txt

    Also if you put a date /T and time /T in the beginning and in the end of that batch file, you will get the times it was at that point and you can map your script running time and order.

提交回复
热议问题