Thanks to Kit Baum, a new command called -tr- is available from SSC.
-tr- is a prefix command to trace the execution of a Stata program.
To install -tr-, type
. ssc install tr
-tr- works with Stata 8.2 or newer.
In essence, -tr- is a shorthand for typing
. set trace on
. <command>
. set trace off
but it also supports all other trace settings as arguments/options.
For example, you can type
. tr 3: <command>
to trace up to three levels of nesting, or you can type
. tr, hilite("whatever"): <command>
to highlight all occurrences of "whatever" in the trace output. See
. help tr
for details.
ben
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/