Command TRACE
Function:
Provide debugging support for batch programs.
Syntax:
TRACE [ [drive:][path]filename [batch-parameters] ]
| [drive:][path]filename | Batch program name and location. |
| batch-parameters | Any command line information that is used by the batch program. |
Note:
- When the TRACE command is used to start a specified batch program, then the debugging process begins from the beginning of the batch program.
- To specify a point (ie. a break point) within a batch program where the debugging process is to begin, use the TRACE command without any parameters. For example, consider the following batch program :-
@ECHO off
LET total=0
TRACE
FOR %%i is 1 to 10 do {
LET total=%total% + %%i
}
ECHO sum is %total%
- When using the TRACE command, as in the above batch program, there is no need to start the batch program using the TRACE command, instead run the batch program by entering its name at the WinOne® prompt. When WinOne® encounters the TRACE command included in the above batch program, then the debugging process will being from that point.
- The use of the TRACE command without any parameters to specify break points is valid only when used within a batch program.
- Also see Batch Program Debugging.
|