Statalist


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

Re: st: Debugging tool


From   Sergiy Radyakin <[email protected]>
To   [email protected]
Subject   Re: st: Debugging tool
Date   Fri, 21 Aug 2009 17:02:12 -0400

1997 Stata user group meeting in London is the oldest on which
materials are available. Among the wishes and gumbles:

--- Check syntax before running file (lint for Stata)
--- Report where program was when it failed

(I interpret the last one as show the line number)

That was 12 years ago.

http://www.stata.com/meeting/3uk/wishes.html


2Roy: pass i and j to your program as parameters.

Best wishes, Sergiy Radyakin



On Fri, Aug 21, 2009 at 1:16 AM, Roy Wada<[email protected]> wrote:
>> This feature would be very useful for me.
>>
>> Howie Lempel
>>
>> I strongly, strongly, strongly support this request.
>>
>> Fred Wolfe
>>
>>> I would like to have a tool (say with set debug on) that shows (without set
>>> trace on) after a command that ends in an error
>>>
>>> Wim van Putten
>
> Debugging doesn't really bother me, but I would like to see universal
> loop indicators accessible from inside the loops. In the following example,
> myprogram doesn't know anything about the loops outside it.
>
> for ... {
>   for ... {
>      myprogram ...
>   }
> }
>
> You could manually pass that information to the program, but presumably
> Stata already knows about the loops, and that inforamtion could be made
> available to any embedded program that wishes to know (1) how far down it
> is being embedded, (2) what is the name of counter/variable that is
> used to operate the loops, and (3) what values are contained in those
> counters.
>
> Among other things this type of function could be useful for debugging.
> It would tell you where you are, instead having you go through a trace
> output.
>
> Something like this is already available for byable programs in the form
> of _byindex, _byvars, _byrc0, bylastcall( ), etc, so it's probably not
> too far fetched.
>
> Roy
>
> _________________________________________________________________
> Hotmail® is up to 70% faster. Now good news travels really fast.
> http://windowslive.com/online/hotmail?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_faster:082009
> *
> *   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/
>

*
*   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