12.2 Add Tracing Text

Tracing can be a useful tool to use when trying to track down problems in your code execution.

To add a tracing statement, add some text like this to your web application:

Evtroutine Handling(#Trace.Click)


#sys_appln.TraceMessageText( ("Last trace was &1").Substitute( #xDemoNumber.Asstring ) )


#xDemoNumber += 1


#sys_appln.TraceMessageText( ("Trace value now").Substitute( #xDemoNumber.Asstring ) )



To view the trace statements, access Console in the Developer Tools associated with your browser.

For more information on Tracing Applications refer to Tracing Applications in the Visual LANSA User Guide.