Statalist


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

Re: st: Trace in Mata (the debugging command, not the matrix function)


From   Sergiy Radyakin <serjradyakin@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Trace in Mata (the debugging command, not the matrix function)
Date   Tue, 17 Mar 2009 11:06:29 -0400

Dear Fabrice,

IMHO there will be no -trace- command for Mata, because it is a
compiled language. Since the internal structure of the compiled mata
files is not disclosed it is unclear whether the source code could be
reconstructed from it one-to-one. My feeling is that there is some
information loss on the way. So what you may see is a sequence of
meaningless p-codes, if anything. However, you get plenty of
compile-time error messages, as well as runtime error messages.

set matadebug on

issues a couple of more messages when mata is running, but not really
helpful. See my earlier post on it here:
http://www.stata.com/statalist/archive/2009-01/msg00434.html

Best regards, Sergiy Radyakin

On Tue, Mar 17, 2009 at 9:50 AM, Martin Weiss <Martin.Weiss1@gmx.de> wrote:
> <>
>
> Debugging will be a battleground in -mata- for some time. -trace- does not work there. As a beginner, 99% of the time conformability issues get in your way, and luckily -mata- is vocal about them...
>
>
> HTH
> Martin
> -------- Original-Nachricht --------
>> Datum: Tue, 17 Mar 2009 14:45:55 +0100
>> Von: "Fabrice" <fcaspam@yahoo.fr>
>> An: statalist@hsphsun2.harvard.edu
>> Betreff: st: Trace in Mata (the debugging command, not the matrix function)
>
>> One of my concern while I'm being drawn to use Mata is that I have not
>> been
>> able to identify the trace programming command, the one allowing to follow
>> code execution, in order to debug code (so, NOT the trace as the sum of
>> diagonal).
>>
>> Would anyone know how to do this?
>>
>> Fabrice
>>
>> PS: I tried to find the answer on my own, but using search engine on the
>> expression "mata trace" returned tons of pages about "trace" as the matrix
>> expression, I could not find the needle in the haystack talking about
>> "trace" related to debugging
>>
>> *
>> *   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/
>
> --
> Martin Weiss
> Hackersteigle 3
> 72076 Tübingen
> 00497071/793535
> 00491784597218
>
> Aufgepasst: Sind Ihre Daten beim Online-Banking auch optimal geschützt?
> Jetzt informieren und absichern: https://homebanking.web.de/?mc=mail@footer.
> *
> *   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index