Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Tracing loops


From   William Buchanan <[email protected]>
To   [email protected]
Subject   Re: st: Tracing loops
Date   Fri, 27 Sep 2013 11:09:25 -0500

See -help set tracedepth-.  It might take a while, but you should be able to set things to either exactly what you want, or at least get very close.

HTH,
Billy

On Sep 27, 2013, at 11:00 AM, Joe Canner <[email protected]> wrote:

> Dear Statalist colleagues,
> 
> Is there any way, as of Stata 12, to trace the execution of a -foreach- loop without Stata also tracing any ado-file based commands within the loop? I saw a post on this from 2009 and the only solution then was to save the trace to a log.  This seems like a tedious and time consuming way to simply find out where an error occurred, follow the execution progress of a loop, and/or see what output goes with what commands.
> 
> Is there anything new in Stata 13 that addresses this?
> 
> Is there any conceivable way to program this some other way?  Is this even a concern for anyone?
> 
> Thanks,
> Joe Canner
> Johns Hopkins University School of Medicine
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index