4. Designing and Writing OpenROAD Server Applications : OpenROAD Application Requirements : Ghost Frame : Session Tracing
 
Share this page                  
Session Tracing
You can exploit the application session tracing facility of the Server Manager if you put calls to 4GL procedure ASDebug() in your OpenROAD Server application code. When session tracing has been switched on (using the Server Manager), each call to ASDebug will be traced. This can assist greatly with debugging OpenROAD Server applications and can be used to monitor session activity in a production installation.
We recommend that you include a call to ASDebug at the start of every method and 4GL procedure. Multiple calls can be placed in each method or procedure if required. Calls within the same block of code should be distinguished from each other by having a different location number. For example:
Method M1()
BEGIN
    CALLPROC ASDebug(p_ob = CurObject, p_v_method = 'M1');
    ...
    ...
 END
Procedure P1()
BEGIN
    /* procname will be determined from ObjectSource,Name */
    CALLPROC ASDebug(p_ob = CurProcedure);
    ...
    ...
 END
Method BigMethod()
BEGIN
    CALLPROC ASDebug(p_ob = CurObject, p_v_method = 'M1', p_i_locno = 10);
    ...
    ...
    CALLPROC ASDebug(p_ob = CurObject, p_v_method = 'M1', p_i_locno = 20);
    ...
    ...
 END