The Debug Perspective

You use the debug perspective for debugging offline.

Desktop Studio has an integrated debugger that lets you control the execution of automation scenarios. It includes:
  • An Events view to display events received and actions executed in response

  • A Pages view to display recognized pages

  • A Scenarios view to display the automation scenarios being executed

  • A Tester view to execute actions on the fly

  • A Screenshots view to display screenshots captured during execution

A debug session is basically a set of trace lines shown in JSON format. There is one line for each:

  • Event received by the engine of the Desktop Agent

  • Framework action performed by the project scripts

  • Scenario/step/handler status change

Additionally, it can include .png files that correspond to the screenshots captured during execution.

The Debug Perspective

When a debug session is loaded into Desktop Studio, a new debugger instance is launched in embedded mode in a new Debug perspective:

Manage Debug Sessions

Save a Debug Session

To save the current debug session, click Start of the navigation pathFile Next navigation step Save Debug SessionEnd of the navigation path in the main menu.

The first time the session is saved, the debugger asks you for the file path and the name of the file to save the session.

The debugger will then automatically save the complete debug session in this file when execution ends.

Reopen the Last Debug Session

When execution ends, Desktop Studio automatically keeps the last debug session in memory. You can open it by clicking Start of the navigation pathFile Next navigation step Open Last Debug SessionEnd of the navigation path.

Load a Debug Session

You can load a debug session that was saved previously by clicking Start of the navigation pathFile Next navigation step Open Debug SessionEnd of the navigation path.

You can also do this by:

  • Double-clicking the corresponding file in Windows Explorer

  • Dragging & dropping the file from Windows Explorer to the Desktop Studio PSC tree