Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: Date/time and "log close" after error message


From   Fred Wolfe <[email protected]>
To   [email protected]
Subject   RE: st: Date/time and "log close" after error message
Date   Tue, 02 Dec 2003 14:20:04 -0600

At 08:07 PM 12/2/2003 +0000, you wrote:
Turn on the trace at the previous line!
The problem arose for me in a situation where there were a series of -foreach- and/or forvalues loops, some nested. In order to turn on trace at the "previous line" I had to find where the crash occurred. So I had many (10?) minutes of watching traces display on the screen before the error was shown. If there were an indication of the failure line, I could then go to the "previous line" and save much time.


As the last trace could presumably be kept in memory,
this does sound possible, except that
I guess that the trace would have to
be displayed after a crash (not a problem,
in my view).

So you could have

. set lasttrace on
meaning that you get a more detailed
report on a crash.

Is this possible?
I don't know, but perhaps Stata has an undocumented command to allow one to come up with this information?

Fred



Nick
[email protected]

Fred Wolfe

> High on my wish list for
> Stata is the
> ability to have a program that produce an error optionally
> display the line
> or line #  where the program fails or to turn on trace at
> the previous line.
>

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

Fred Wolfe
National Data Bank for Rheumatic Diseases
Wichita, Kansas
Tel (316) 263-2125     Fax (316) 263-0761
[email protected]


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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