In the Debugger, you can monitor the status and value of objects using the SHOW command. Unlike the LIST command, SHOW displays the actual value or status of the Rational Statemate object at the current execution point. Thus, at a breakpoint, you can examine the values of different objects such as data-items, conditions and records to check if their actual values correspond to the expected values.
Using the SHOW command, you can modify the values of conditions and data-items, or generate and reset events. When you resume the execution of the prototype, the new values take effect.
You can also check which time-outs and scheduled actions are currently pending with the SHOW SCHEDULE command.
The SHOW command can be used in the same basic form as the LIST command:
This provides great flexibility in limiting your request to only the information that you need.
SHOW with no arguments gives you the most complete information about the current status of the system. This information includes the following:
● Status of all activities (active, suspended, nonactive), organized by the activity’s hierarchy. Descendants of nonactive activities are not shown explicitly, since they are all nonactive.
● Current state configurations of all controlling statecharts of active and suspended activities, ordered according to activity and state hierarchies.The second form of the SHOW command provides you with information on all objects of the selected class. To get this information, use one of the following commands:
Additionally, the current step number is displayed by entering the SHOW STEP command.
The third form of SHOW allows you to restrict the displayed information to a subclass of a particular object class. For example:
The fourth form of SHOW restricts the information to specific objects of a certain class. You provide a list of object names as a command argument. You may use wildcard abbreviations and the subobjects operator.
would display the values of the data-item signal_level, as well as the values of all data-items beginning with the letter “y”.
displays the status of each activity that starts with letters “act” and all of their descendants, until it reaches nonactive activities.