Inspect Manual

Inspect Command Overview
Inspect Manual429164-006
3-3
Managing Multiple Programs
Managing Multiple Programs
Inspect enables you to debug more than one program in a single Inspect session.
Table 3-2 lists the commands that you use to manage multiple programs.
Managing Source Files
When you debug a program written in a high-level programming language, you often
need to examine the program's source code to pinpoint a bug. However, if the source
code is moved between the time that the program was compiled and the time that you
debug it, Inspect cannot retrieve the source code from its new location automatically.
Consequently, Inspect provides several commands that enable you to inform Inspect of
changes to the location of source code, as listed in Table 3-3
on page 3-4.
MODIFY Changes the value of a data item or register in the current program.
SAVE Creates a save file of the current program, including its extended
segments.
SOURCE Displays source code.
TRACE Displays the call history for the current program location.
Commands that Simplify Program Debugging
LIST
BREAKPOINT
Displays one or all breakpoints defined in the current program.
SCOPE Changes or displays the current scope path.
Table 3-2. Commands for Managing Multiple Tables
Command Description
ADD PROGRAM Adds a process or save file to the program list for the current
Inspect session.
PROGRAM Adds a process or save file to the program list for the current
Inspect session.
LIST PROGRAM Displays the list of programs being debugged.
SELECT PROGRAM Selects a program from the program list as the current program.
Table 3-1. Commands for Debugging the Current Program (page 2 of 2)
Command Description