Mathematica 9 is now available
Previous section-----Next section

Save

SetOptions[$DebugObject, opts...]set debug options of Parallel Computing Toolkit
Options[$DebugObject]gives the current debug option settings
Trace→{tracers...}set trace events
TraceHandler→handlerspecify how trace events should be handled; possible values include Print and Save
TraceList[]gives the current list of trace events
newTraceList[]initializes the trace list

Debugging functions.

Saving Trace Events

Instead of printing trace events, the toolkit can save them in a list for later analysis. First, configure the tracing system to save the events and initialize the trace list.
In[6]:=
Out[6]=
In[7]:=
Now specify which events to trace as before
In[8]:=
Out[8]=
and run your computation.
In[9]:=
Out[9]=
The list of events is now available in TraceList[], which is best viewed in TableForm.
In[10]:=
Out[10]//TableForm=
To reset the list, use newTraceList[] and to end tracing, turn it off as before.
In[11]:=
Out[11]=
To switch back to printing trace events, use
In[12]:=
Out[12]=


Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.