Native Inspect Manual (H06.03+)

Table Of Contents
Introducing Native Inspect
Native Inspect Manual528122-003
1-18
Debugging TNS Processes
The super ID has the unique ability to vector to and examine processes running in
the current CPU without establishing a debugging session with that process.
When privileged debugging mode is enabled, the attach command issues a
DEBUGNOW request rather than a DEBUG request.
Debugging TNS Processes
Native Inspect does not support debugging TNS processes. However, a TNS process
comes under the control of Native Inspect when the Inspect subsystem (T9226) is not
running.
If the current process is a TNS process, in Native Inspect. you can:
Create a snapshot of the TNS process for later analysis with Visual Inspect or
Inspect (using the save command)
Display a stack trace of the TNS process (using the bt command)
Continue execution (using the continue command)
Transfer the TNS process to Inspect (using the switch command)
Stop the TNS process or exit the debugger (using the kill command)
For TNS programs that are executing OCA-generated TNS/E code, Native Inspect can
debug the program, nonsymbolically, at the TNS/E machine level. You can use
commands such as continue, finish, next, step, and until. Native Inspect applies the
commands to the underlying TNS/E native view rather than to the TNS process itself.
Also, the bt command can display a TNS stack trace.
Snapshot File Analysis
A process snapshot file or snapshot is a disk file that is an image of a process, its data,
and its status at the moment it was saved—analogous in function to “core” files on
UNIX systems. Snapshots have file code 130. All three debuggers—Native Inspect,
Visual Inspect, and Inspect—can be used to debug snapshots (Inspect refers to
snapshots as save files).
Creating a Snapshot
You can create snapshots in several ways, such as:
Using the save command (Native Inspect)
Using the Save Snapshot command (Visual Inspect)
Caution. Use the super ID’s vector capability with care. The process might be executing, and
you cannot use execution control commands or commands that alter the process state.