TotalView User Guide : Part I: Introduction : A Tour of TotalView : Introducing the CLI

Introducing the CLI
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:
dbreak 1038
When you combine Tcl and TotalView, you can simplify your job. For example, the following code sets a group of breakpoints:
foreach i {1038 1043 1045} {
dbreak $i
}
Chapter 11, “Seeing the CLI at Work” presents more realistic examples.
Information about the CLI appears throughout this book. Chapter 3 of the TotalView Reference Guide contains descriptions of most CLI commands.

Rogue Wave Software, Inc.
Voice: (303) 473-9118
rwonlinedocs@roguewave.com