Read

Use

Reads and executes debugger commands from a specified file.

Command Syntax

READ filename

where:

filename
Is any file containing debugger commands. If the file is not in the current working directory, its pathname must be specified

Description

The READ command is used to execute debugger commands, which are contained in the specified filename. Each command is printed to the terminal as it is executed. Seven levels of Read commands may be nested in debugger command files.

Example

In this example, debugger commands are read in from a file called dbg. After all the commands are read and executed, the debugger prompts for the next command to be entered.

CodeWatch> READ dbg
**** Reading commands from "dbg" ...
CodeWatch> BREAKPOINT PRIMES\119 /SKIP=0
CodeWatch> BREAKPOINT PRIMES.READ_INPUT\%ENTRY /SKIP=0 [e maxv;]
CodeWatch> BREAKPOINT PRIMES.ISPRIME\%ENTRY /SKIP=0
CodeWatch> BREAKPOINT PRIMES.PRINT_OUT\60 /SKIP=0 
CodeWatch> BREAKPOINT PRIMES.PRINT_OUT\59 /SKIP=0 
CodeWatch> MACRO info=[ lb /a;lenv;lma /a; where ] 
CodeWatch>
**** Done reading commands from "dbg"