MT Debugger modes are set in the Simulator. There are three debugger modes:
•Breakpoints Mode: In this mode, the simulation will stop at breakpoints. If the breakpoint has been defined on an action, Actions Debugger will open and the action will be displayed in it. If the breakpoint is defined on an XPath expression, XPath Debugger will open and the expression will be displayed in it. You can then start debugging the action or expression.
•Actions Mode: In this mode, the simulation will stop at the set of actions defined on the next event that is triggered in the Simulator. The Actions Debugger will open, and the event's actions will be displayed in it.
•Errors Mode: In this mode, the simulation will stop when it encounters XPath errors.
Note the following points:
•Only one mode can be selected at a time.
•You can change modes during a simulation.
•After each simulation, the mode selection is removed. So the mode must be selected afresh for each simulation.
You can select a debugger mode either before or after starting a simulation:
•Before starting the simulation: Select the mode via the the MobileTogether Designer toolbar or the Debug menu.
•After starting the simulation: Select the mode in the Simulator toolbar.
In both toolbars, the icons and commands are the same (see below).