trace(what, tracer=T, exit=<<see below>>, at=1, print=T) untrace(what=<<see below>>)
untrace removes the altered functions from the session database. If there is no argument to untrace, all functions are removed from .Tracelist.
You can perform: tprint(myfun) to see where the at argument will put the tracing. This prints the body of the function myfun, with each subexpression numbered.
Tracing will only be performed during the current session of S-PLUS. Each call to trace for a given function replaces any previous tracing for that function.
The inspect function now provides a more general interactive debugging environment, including browsing and tracing, together with most of the functionality of the debugger function.
trace(parse) # record all calls to the parse functiontrace(c("sum", "cumsum"), exit=T)
untrace() # remove tracing from all functions