The following example uses the
totalviewcli command to start the CLI. This is followed by
dload and
drun commands. Since this was not the first time the file was run, breakpoints exist from a previous session.
This two-step operation of loading and running supports setting action points before execution begins, as well as executing a program more than once. At a later time, you can use
drerun to restart your program, perhaps sending it new arguments. In contrast, reentering the
dload command tells the CLI to reload the program into memory (for example, after editing and recompiling the program).
The dload command always creates a new process. The new process is in addition to any existing processes for the program because the CLI does not shut down older processes when starting the new one.
The dkill command terminates one or more processes of a program started by using a
dload,
drun, or
drerun command. The following example continues where the previous example left off:
Because information is interleaved, you may not realize that the prompt has appeared. It is always safe to use the Enter key to have the CLI redisplay its prompt. If a prompt isn’t displayed after you press Enter, you know that the CLI is still executing.