I am trying to debug a complex CMD batch script. Is there a way to run it one statement at a time, like how some IDEs allow you to run your program step-by-step?
In addition, I would like to log everything (each statement and its result after evaluation) to a log file.