Guardian Programmer's Guide

Table Of Contents
Debugging, Trap Handling, and Signal Handling
Guardian Programmer’s Guide 421922-014
25 - 5
Getting a Process Into the Debug State
Using the DEBUG Command
You can put a process into the Debug state by entering the DEBUG command. You
need to supply the CPU number and PIN of the process you want to debug. Typical
use of this command is as follows:
1. Run a process with the RUN command:
> RUN OBJFILE
2. Press the BREAK key to return the command-interpreter prompt.
3. Find the CPU number and PIN of the process using the STATUS command:
> STATUS
Process Pri PFR %Wt Userid Program file Hometerm
2,49 139 R 000 8,160 $APPLS.PROGS.OBJ \SYS.$AA
4. Run the DEBUG command on the process:
> DEBUG 2,49
DEBUG 002020, 000317, UC.00
106,02,00049-
Using the Visual Inspect Application
Visual Inspect is a NonStop operating system symbolic debugger that uses program
visualization, direct manipulation, and other techniques to improve productivity in the
development or production environment. It supports these machine architectures and
compilers:
CISC (TNS C/C++, COBOL85, TAL)
RISC (TNS/R Native C/C++, NMCOBOL, pTAL)
Itanium
® (
TNS/E
Native C/C++, ECOBOL, EpTAL
)
Visual Inspect uses client/server architecture. The client runs on a Windows NT,
Windows 95, Windows 2000, or Windows XP workstation. The server runs on a
NonStop host. Working together, the client and server components allow you to control,
analyze, observe and alter application execution so that you can quickly find and
correct logic errors.
Refer to the Visual Inspect online help, included with the application, for further
i
nformation on starting and managing a process debugging session.
Using the Native Inspect Application
Native Inspect is a symbolic command-line debugger used for debugging TNS/E native
process and snapshots on HP TNS/E systems. You can use Native Inspect to debug a
running process:
TACL> debug $myproc
This invokes Native Inspect on the home terminal of process $myproc.