DebuggingDebugging is a process where by the execution of a program is tightly controlled in order to help locate and fix problems (commonly referred to as bugs) that may arise while writing a program. WinOne® provides the TRACE command to help in the debugging of a batch program. Traditionally, in command shells such as CMD.EXE, debugging support for batch programs has been limited to using the ECHO batch command (ie. to display a batch program while running or to display the contents of an environment variable), however, WinOne® provides a far greater level of control, including single step, running, stopping and environment variable manipulation while a batch program is being debugged.
When using the TRACE command to debug a batch program the following window is displayed, which includes the Batch Program list box, which contains a listing of the complete batch program, the Unprocessed Command box, which contains the full unprocessed command line that is being interpreted and the Processed Command to be Executed box, which contains the actual command (after relevant environment variables have been instanciated) that is next in line for execution :-
Single step allows one command in a batch program to be executed at a time. Press the Step button to execute the command currently displayed in the Processed Command to be Execute box and to process (but not execute) the next command.
Running the Batch Program
Press the Run button to close the Trace window and continue running the remainder of the batch program.
Stopping the Batch Program
Press the Stop button to stop the batch program, close the Trace window and return to the WinOne® prompt.
Press the Variables button to view and/or modify the current environment variables for the batch program. The Environment Variables window is displayed, as follows :-
To move an environment variable from the Variables list into the Variable and Value fields respectively (where the environment variable may be set or deleted), simply click on the desired environment variable in the Variables list.
Copyright © 1995-2018 Lucien Cinc, All Rights Reserved
WinOne® is an Australian registered trademark
Go to the Australian Command Line Software web site.