![]() | Application Builder User's Guide | WideStudio Index Table of contents |
Trace Debugger
How to use the trace debugger
Use the trace debugger to see the execution status of the event procedures executed. Fist of all, build the application, and select ((menu:Build >> Trace Execution)), then the trace dialog appears as follows:Push [start] button on the trace dialog to start tracing. When an event procedure is activated, the following outputs are shown in the trace dialog. When you want to stop tracing, push [stop] button.
[Trace Dialog]You can find which event procedure has a bug when the application terminates abnormally without the following trace message:
[Trace output]function functionname( ) endwhere "functionname" is the name of the function of the event procedure.
Further more, you can show a trace message from your application using WSGFtrace() function as follows (A):#include <WScom.h> #include <WSCfunctionList.h> #include <WSCbase.h> //----------------------------------------------- //Function for the event procedure //----------------------------------------------- void btn_ep1(WSCbase* object){ object->setProperty(WSNlabelString,"Hello!"); WSCstring string; string = "btn_ep1 called!!!!!\n"; WSGFtrace(string); //(A) } static WSCfunctionRegister op("btn_ep1",(void*)btn_ep1);Note that the output by WSGFtrace() is enabled only when the tracing is turned on.
[Trace output by the application]
Copyright(C) T. Hirabayashi, 2000-2002 | Last modified: Oct 27, 2002 |