One can generate a trace while the subscription PeopleCode get executed by using the following two functions in the subscription PeopleCode:
SetTracePC(0);
SetTraceSQL(0);
Example:
SetTracePC(384);
/* REM PeopleCode Statements to be traced */
Local string &St_temp_l;
/* More PeopleCode statements */
SetTracePC(0);
In case trace can't be enabled, use writeline finction:
ReplyDelete&fileLog = GetFile("C:\temp\LOGFILE.log", "w", "a", %FilePath_Absolute);
&fileLog.WriteLine("Begin");
&fileLog.WriteLine("End");
&fileLog.Close();