\Header{trace}{Trace All Calls to a Function.}
\alias{untrace}{trace}
\keyword{programming}{trace}
\begin{Description}\relax
These are both in very primitive form.
If \code{trace} is called the function named is marked and each time it
is entered the call is printed on the console.
To stop tracing a function use \code{untrace}.\end{Description}
\begin{Usage}
\begin{verbatim}
trace(fun)
untrace(fun)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{fun}] any interpreted \R{} function (not quoted).
\end{ldescription}
\end{Arguments}
\begin{SeeAlso}\relax
\code{\Link{debug}}.\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
trace(names)
data.frame(x=1:2, y=3:4)
untrace(names)
\end{ExampleCode}
\end{Examples}

