Debugger : Debugger Commands : SET TRACE Command

SET TRACE Command

The SET TRACE command has six forms:

Pdb > SET TRACE
Pdb > SET TRACE object_class
Pdb > SET TRACE object_class subclass
Pdb > SET TRACE object_class list_of_objects
Pdb > SET TRACE STEP
Pdb > SET TRACE SCHEDULE

Similar to the LIST and SHOW commands, the SET TRACE command can be started on all system objects or restricted to only specified objects. The rules of naming object classes, subclasses and object lists are the same as in the LIST and SHOW commands.

For example, the command:

Pdb > SET TRACE EVENT INTERNAL

 

sets a trace for all internal events and conditions.

Another command:

Pdb > SET TRACE STATE sampling^, c*, disconnected
 

sets a trace for sampling and all its substates, all states beginning with the letter “c” and the state disconnected.

The Debugger displays trace messages on the terminal screen and/or stores them in a file (when used in conjunction with the SET FILE command).