How to use a trace debuggerYou can use trace debugger the execution status of event procedures that you created. Fist of all, build the application, and select [Trace Execution] in [Build] menu. Then, trace dailog appears as follows:![]() [Trace Dialog] And push [start] button on the trace dialog to start tracing. When event procedure is activated, the followings are output in the trace dialog. When you want to stop tracing, please push [stop] button. ![]() [Trace output] If the function existing an event procedure, function function-name( ) endis not output in the trace log and the application terminates abnormally, you can expect fault is in the event procedure. Further more, you can see a trace by 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 output by WSGFtrace() is enabled only when the tracing is enabled.
![]() [Trace output by an application] Document Release 3.0 For Use with Wide Studio Release 3.0, Summer 2002
|