Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New -tr- package on SSC: prefix command to trace program execution


From   Ben Jann <[email protected]>
To   statalist <[email protected]>
Subject   st: New -tr- package on SSC: prefix command to trace program execution
Date   Wed, 25 Feb 2009 14:01:52 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index