Tracing and Debugging
In the set trace flags on the signon page use
Each Statement or you can configure this through:
Show Each to log all the PeopleCode that fires during your trace. This will tell you what PeopleCode and events are firing (and what is not firing) and is usually enough to give you an idea of what is going on. The best thing is that this trace produces a much smaller log file than selecting most of the other PeopleCode trace settings, making the PeopleCode trace manageable! Remember when it comes to tracing/logging, less is more.
Another way to set up specific tracing in Your PeopleCode is by using the
SetTracePC functions. For example:
/* Turn on tracing */ SetTracePC(3596); /* PeopleCode you want to trace */ /* Turn off tracing */ SetTracePC(0);
Also, here's a simple example of how to log to a file in your PeopleCode if you need it.
&fileLog = GetFile("C:\temp\LOGFILE.log", "w", "a", %FilePath_Absolute); &fileLog.WriteLine("Begin"); &fileLog.WriteLine("End"); &fileLog.Close();