Debugging the Client Side (Magic xpa 3.x)
In Rich Client tasks, the server side can be debugged using the Activity Monitor. The client-side entries are added to the Activity Monitor when the next event is processed.
To debug the client side:
If the Rich Client task crashes or hangs while performing operations on the client side, then they will not appear in the Activity Monitor. Therefore, Magic xpa provides a solution to let you debug the client-side sequence.
To debug client-side crashes:
-
Set the LogClientSequenceForActivityMonitor flag in the HTML file to Yes. The HTML file is created when you use the Rich Client Deployment Builder. If the flag is set to Yes, client activities will be written to a local log file on the client. This log file will include all the information that was not yet sent to the Server. The log file will be deleted after each event execution or when the application is terminated.
-
Launch the application. Magic xpa will scan for existing log files. If there are any from the last crash, they will be sent to the Server (and appear in the Activity Monitor).
-
When a crash occurs, exit all other parallel processes (so that their log files will be deleted normally).
-
Restart the application and the log file with the last client sequence will be sent to the Server (and appear in the Activity Monitor).
-
The Activity Monitor will be updated with the Client log, and now you can see the location of the problem.
Note: The Activity Monitor's lines are pink for the server and white for the client.