Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WBRIDGE and version 24.0
Div
Classe2e-refDiv

Otp
Floatingfalse

Rp

Having navigated to the action that is to be inspected, open the context menu of the concerning action.

Image Modified

Select Add Breakpoint to add a breakpoint and Remove Breakpoint to remove one.

Info
iconfalse
To set a breakpoints it is not relevant whether the service is running or not.

Image Modified

The action node of an action having an active breakpoint is surrounded by a dark frame to indicate the breakpoint.

To get an overview on all breakpoints defined open the Breakpoint Manager window by clicking Image Modified in the Debug tab.

Image Modified

All breakpoints of the UML model are listed and can be deactivated or reactivated by selecting the corresponding checkbox. Click OK to close the dialog.

Image Modified

The action node of an action having an inactive breakpoint is surrounded by a light frame to indicate that the breakpoint is deselected.

Image Modified

To delete all breakpoints of the UML model select Delete All Breakpoints.

Image Modified

If the xUML Runtime stopped service execution on a breakpoint the corresponding activity diagram opens and the breakpoint halted on is indicated by a yellow frame.
If the UML model of the service is not open in MagicDraw, the corresponding XML file will be opened as well.

Info
iconfalse

Breakpoints may be set on all executable UML elements (such as action nodes, guards, call operation actions, ...) and on initial nodes. Breakpoints may not be set on parameters and objects, action flows, ... and on final nodes.

Multiexcerpt include
MultiExcerptNamepriceCalculation
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE

Exception Breakpoints

The Breakpoint Manager contains an additional tab to manage exception breakpoints. In the Exception Breakpoints tab, a default exception breakpoint is set:

Image Modified

Disable the checkbox if you want to deactivate the default exception breakpoint.

If an exceptions is thrown during model execution in debug mode, the Interactive Debugger stops at that point and creates an exception breakpoint.

Image Modified

The topmost tree node shaded in red indicates, that the Interactive Debugger stopped on an exception. The exception details are displayed.

Image Modified

The automatically created exception breakpoint can be viewed in the Exception Breakpoints tab of the Breakpoint Manager.

Image Modified

Next time this exception occurs, the Interactive Debugger will indicate the UML element that caused the exception (which is in this example a manually thrown exception).

To proceed with model execution click Image Modified in the Debug tab.

Multiexcerpt include
MultiExcerptNamethrowError
nopaneltrue
PageWithExcerptINTERNAL:_examples_BRIDGE

View Dump File

In the service preferences of xUML services running on the Bridge, it is possible to set the flag Dump Context on Error. Each time the xUML service throws an exception, actual call stack and data is logged in a trace file.

These dump information can be viewed with the Interactive Debugger as a sort of exception breakpoint snapshot.

Image Modified

Select Load Dump File or Load Dump File from URL from the context menu of the service deployment.

Image Modified

Select the error dump file to display from the Bridge data directory and click OK ...

Image Modified

... or copy the dump file URL from the Bridge, provide your credentials and click OK.

For more information on where to find the error dumps on a Bridge, refer to xUML Service Dump.

The Embedded xUML Runtime window opens and shows an additional tab displaying the error dump information. The exception details can be inspected as described in section Exception Breakpoints and in Inspecting the Callstack. The erroneous action script statement is marked in red.

Image Modified

Additionally, the Debugger shows the UML element where the error occurred:

Image Modified

Panel
titleOn this Page:
Table of Contents
Panel
titleRelated Pages: