TheApplication().TraceOn method can helps to identify Memory allocated in our scripts and also to identify the SQL that our script is executing.
TraceOn Method Details: Trace method takes 3 arguments
FileName: First argument is the path and filename in which to dump the details
Type: Type arguments tells Trace what kind of details to dump. It can have two values
1. Allocation: which will dump the details of Memory Allocation
2. SQL: Which will dump the SQL’s that are executed in the background by script.
Selection: It is used when you choose type as “Allocation”. It tells Siebel what type of objects should be traced. It can have 3 possible values
1. Script: Traces Scripting objects
2. OLE: Traces objects allocated by automation servers
3. All: Traces both script and Automation server objects
Usage: Below are some examples of using TraceOn Method
TheApplication().TraceOn(“c:\\trace.txt”,”Allocation”,”All”);
Your code that you want to trace Use Trace off when you want to stop the trace
TheApplication().TraceOff();
Hi,
ReplyDeleteCan I trace in a server path? I get error “Unable to create trace file. The given file could not be created for writing trace information.(SBL-EXL-00106)”
Thanks
Bharath