Show TOC

Function documentationTransaction Debugging Locate this document in the navigation structure

 

You use this function to monitor and manipulate a transaction while it is running.

Features

During debugging, you can do the following:

  • Manipulate transaction breakpoints

    For more information, see Breakpoint.

  • See the transaction's current execution state

  • Modify internal variables when the transaction is paused

  • Modify link expressions and action configurations for future executions

The system displays the actions in the following colors:

Color

Action State

Yellow

Action is being processed

White

Action has not yet run and was not skipped

Green

Action ran and the status is true

Red

Action ran and the status is false

Orange

Action ran and threw an exception

Gray

Action was not run because it was skipped

Blue

Action has an active breakpoint

If an action was run more than once due to a loop, the upper right corner displays the number of runs and the color applies to the last run. The run count limit is 9999. If an action runs more than 9999 times, the system displays ---. If this occurs, the transaction keeps running, but the count does not increment.

Activities

To run debugging for a transaction, on the SAP MII Workbench screen, choose   Transaction   Debug  . The following tab pages appear at the bottom of the screen:

  • Breakpoints

    Lists the breakpoints. From this list, you can create, edit, and delete expressions.

  • Variables

    Lists all action variables through the action currently being processed. Skipped action variables are not in this list.

    The value in this list is the value before the execution of the closest breakpoint. You can enter a different value during runtime to see how it affects the execution of the transaction. Link values must be changed at runtime for the new values to take affect.

  • Watch List

    Lists the variables you want to monitor during execution. You can add and remove variables from this list.

  • Links

    Displays the incoming and outgoing links for the action that is being processed or that has a breakpoint.

  • Transaction Debug

    Shows the details for the execution of the transaction. A new Transaction Debug tab page appears each time you run the transaction.

When you are debugging a transaction, you can click the buttons described below to perform certain functions:

Button

Quick Info Text (Tooltip)

Function

Terminate

Stop the execution of the transaction.

Depending on the size of the transaction, it may take a few minutes to stop. When the transaction is stopped, the Terminate button is replaced with the Restartbutton.

Restart

Restart the execution of the action in debug mode

Pause

Temporarily stop the execution of the transaction. You can use the Continue button to resume execution.

Continue

Resume the execution of the transaction.

Step

Run the next action in the transaction and then pause execution.

Create Breakpoint

Add a breakpoint at the selected action.

Delete Breakpoint

Remove a breakpoint from the selected action.

Delete All Breakpoints

Remove all breakpoints from the transaction.

Close

Close the debugging toolbar and exit out of debug mode

Export Session

Export an image (XML file) of the transaction during debugging or after execution

Note Note

The file may be large and complex.

End of the note.

To edit variables, select the Variables tab in the bottom pane of the transaction screen.