The typical program is :
PHIGS initialisation popen_phigs
Opening a workstation popen_ws
CSS construction popen_struct
.........
End of CSS construction
Event handling loop pawait_event
Event handling and ...
modifying the CSS
In order to debug CSS construction, simply replace the called function popen_ws by pxopen_ws_debug in the application program and relink the program.
void pxopen_ws_debug (wsid, conn_id, ws_type)
int wsid;
char *conn_id;
int ws_type;
wsid : Workstation number
conn_id : Connection identifier
ws_type : Workstation type
Simply access the debugger, via the File menu in Browser and Debug, then locate the required break points (Functions type by All Functions for example) then activate the debugger's Go button to run the application, which will stop at the specified break points. If the Browser On toggle is active, the user will see the CSS constructed progressively as the PHIGS commands are executed .
See robotP.c demonstation program.