Command Prompt for Windows


Debugging 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. The WinOne® Command Prompt provides the TRACE command to help in the debugging of a batch file. Traditionally, in command shells such as CMD.EXE, debugging support for batch files has been limited to using the ECHO batch command (ie. to display a batch file while running or to display the contents of an environment variable), however, the WinOne® Command Prompt provides a far greater level of control, including single step, running, stopping and environment variable manipulation while a batch file is being debugged.

When using the TRACE command to debug a batch file the following window is displayed, which includes the Batch File list box, which contains a listing of the complete batch file, 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 instantiated) that is next in line for execution :-

Single Step

Single step allows one command in a batch file to be executed at a time. Press the Step button to execute the command currently displayed in the "Processed Command to be Executed" box and to process (but not execute) the next command.

Running the Batch File

Press the Run button to close the Trace window and continue running the remainder of the batch file.

Stopping the Batch File

Press the Stop button to stop the batch file, close the Trace window and return to the command prompt.


Press the Variables button to view and/or modify the current environment variables for the batch file. 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.