The Command Line Interpreter, or CLI, contains an extensive set of commands that you can type into a command window. These commands are embedded in a version of the Tcl command interpreter. When you open a CLI window, you can enter any Tcl statements that you could enter in any version of Tcl. You can also enter commands that TotalView has added to Tcl that allow you to debug your program. Because these debugging commands are native to this Tcl, you can also use Tcl to manipulate the program being debugged. This means that you can use the CLI to create your own commands or perform any kind of repetitive operation. For example, the following code shows how to set a breakpoint at line 1038 using the CLI:
Information about the CLI appears throughout this book. Chapter 3 of the
TotalView Reference Guide contains descriptions of most CLI commands.