[erlang-questions] Tracing and debugging
Tue Jan 13 15:22:50 CET 2015
Yes, I was a bit inspired by Chronon too. I thought I'd introduce it at a
later stage, as it's not exactly the same thing. Chronon saves the
program's execution in a very efficient way and lets the user go back and
forth, inspecting all variables and parameters and results. One can even
make changes to the data and see what would have happened.
On Tue, Jan 13, 2015 at 1:56 PM, Vladimir Ralev <vladimir.ralev@REDACTED>
> Further it will be awesome if there is a UI debug tool where you can
> step through the code on a timeline based on the generated logs
> without having to read them. Java has Chronon debugger which works
> sort of this way but records more metadata due to the nature of Java.
> In Erlang it will be easier.
> On Tue, Jan 13, 2015 at 2:36 PM, Vlad Dumitrescu <vladdu55@REDACTED>
> > Hi all!
> > I just got a crazy idea and I think it's not that crazy, but I'm willing
> > get feedback on that :-)
> > The main reason I use the debugger is to check that the intermediary
> > in a computation are the expected ones. The alternative (which works
> > messing up timeouts) is to print out values at points of interest, but
> it is
> > messy (there's a lot of boilerplate to type and the interesting code
> > hard to read).
> > So, I thought, what if, instead of interpreting a module in order to
> > it, we compile it with a special parse transform that inserts tracing
> > after each expression in the code, automatically keeping track of the
> > variables visible in the scope and their values?
> > The output can be via io:format, et:report_event, or something else
> > (configurable).
> > Could this "trogging" or "logtracing" be useful, or am I delusional?
> > there already is such a thing, the Erlang ecosystem is getting difficult
> > keep in the working memory :-)
> > best regards,
> > Vlad
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://erlang.org/mailman/listinfo/erlang-questions
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions