Offline Debugging – Trace Management
SAP Intelligent RPA components generate different types of trace, depending on the configuration.
Desktop SDK Basic Trace
Content
In Release mode (not started from Desktop Studio), Desktop SDK systematically generates a trace file containing ‘ctx.log’ verbs. Traces are generated in the ‘Traces.pscl’ file located in the following directory: %localappdata%/SAP/Intelligent RPA/Projects/id/Log/log.<login>.<machine>.<timestamp>.
Each running session of Desktop Agent generates one such directory.
Analyze
Basic trace can be manually collected and displayed using the Desktop Studio Debugger. Log messages are simply displayed in the Events view or in the Scenario view.
Desktop SDK Detailed Trace
Content
The Desktop SDK Detailed trace file includes:
-
All technical events
-
Scenario, step, or functional Events
-
SDK calls
-
diagnosis data (project/machine context, and so on)
Traces, in JSON format, are generated in the Traces.pscl file located in the following directory: %localappdata%/Projects/id/Log/record.<login>.<machine>.<timestamp> (Release mode)
or projectPath/Log/record.<login>.<machine>.<timestamp> (Debug mode)
Each session running Desktop Agent generates one such directory.
Optionally, screenshots can be generated by Desktop SDK on LOAD/ACTIVATE events of the declared pages. These PNG generated files are located in the same directory as the Traces.pscl file.
Release Mode
In Release mode, the detailed trace file is generated on demand (see Manually Record Detailed Trace or Auto-Recording Mode). After collection, the file can be loaded and analyzed in a Debug perspective of Desktop Studio (see Debugging Offline with Debug Sessions).
Debug Mode
In Debug mode, the detailed trace is automatically collected and loaded in the Debugger at start time. The Traces.pscl file can be generated on demand by Debugger (see Save DebugSession).
Screenshots collection can be activated before running the project via the Manage Debug options.
Analyze
Detailed trace is analyzed using the Debugger:
-
Technical events are displayed in the Events or Scenario view.
-
Scenario/Step/Handler status are used to build the Scenario view.
-
Desktop SDK calls are displayed in the Scenario view by expanding handler entries.
-
Screenshots are displayed in the Screenshots view.
-
Each diagnosis message is displayed as Technical events in the Events view or the Scenario view. diagnosis data is displayed in the Details view.
SAP Intelligent RPA Components Technical Trace
Content
Technical trace files are generated by Desktop Agent and its connectors. There is one file per tracing component. For example, CtxtRun.exe_CxAppWeb3.dll_10980.log or iexplore.exe_CxAppWeb3.dll_10312.log.
They are generated in the following directory:
%localappdata%Low\SAP\Intelligent RPA\Desktop Agent
Note that collecting Technical Trace can be time-consuming and generates large files. It must ONLY be performed at the request of SAP Intelligent RPA Support.
-
Release Mode
In Release mode, Technical Trace files can be generated on demand (see Record Technical Trace).
-
Debug Mode
In Debug mode, Technical Trace files generation can be activated before running the project via the Manage Debug options of Desktop Studio .
-
Any Mode
In any mode, Technical Trace files generation can be activated using the TraceViewer external tool (see Using TraceViewer).
-
Analyze
Technical trace files contain technical information generated by the connectors or the engine. This information can only be analyzed by SAP Intelligent RPA Support.
Debug Mode
In Debug mode, Interactive trace detail level can be adjusted via the Manage Debug Options of Desktop Studio.
Analyze
Interactive trace files are simple text files: They cannot be analyzed using Desktop Studio. You can also use any text editor for this job.