You can run a test in debug mode. When MarathonITE encounters a breakpoint it pauses the script. For adding a breakpoint, position the cursor on a line of code and use Toggle Breakpoint option from Marathon menu. You can also double click on the gutter to the left of the editor or use breakpoint button in toolbar. Marathon displays a breakpoint icon at the line.
You can play the test in debug mode by using Debug option in the Marathon menu or the toolbar button. Marathon starts playing the script and when it reaches a line with a breakpoint on it pauses the script.
Commands in Debug Mode
The following commands are available when the script is paused in Debug mode:
|Step Into||Steps into the method call. Useful for debugging the module scripts.|
|Step Over||Steps over the method call.|
|Step Out||Steps out of the current method. Marathon pauses at the statement after the current method call.|
|Resume||Resumes playing of the script. If Marathon encounters another breakpoint, it again pauses the run.|
|Script Console||Opens script console.|