Step 6 Tracing Optional

LANSA Integrator

Step 6. Tracing (Optional)

INT006 - Department Inquiry Functions

In this step, you will use the Integrator Studio to review the different trace files that are created while executing your functions. This is an optional step. In order to use tracing, tracing must have been turned on. The tracing setting can be configured in the manager.properties file or as a parameter of the SERVICE_LOAD Command.

1.  Review function iiiFN06 in the Visual LANSA editor. The code generated by Studio, includes TRACE(*YES) on the SERVICE_LOAD command. Note that trace should be turned off in your production application, to avoid overheads.

2.  Run your application

3.  On the Project tab in Studio, open the server. Expand the trace (Trace Files) folder on the JSM Server panel.

4.  Look for the active job number and open this folder.

5.  Open the client folders and review the contents of the different trace files.

     Note: The Service and Transport trace files can be opened with a Trace Viewer.

6.  To download the trace files, right click one of the client folders and select the Download option from the pop-up menu. All trace files will be placed into a zip file and a new Download tab will be shown in Integrator Studio. Select a file on the Download tabto save it.The downloaded file could now be emailed to another developer when troubleshooting a problem.