16 Aug 21:41
Re: How to get the line number of current executable code?
From: Howard Yeh <hayeah <at> gmail.com>
Subject: Re: How to get the line number of current executable code?
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-08-16 19:41:01 GMT
Subject: Re: How to get the line number of current executable code?
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-08-16 19:41:01 GMT
On 8/16/08, Richard Carlsson <richardc <at> it.uu.se> wrote: > If you're actually running in interpreted mode (debugging mode), you > do get the current line, but it's a couple of orders of magmitude > slower, so you don't want to do that for all your code. How do I run the vm in debugging mode? In the AST transformation code for my pet lisp frontend, it's often hard to tell where a pattern match failed, b/c there can be many matches within a single function. It would be /very/ helpful if running in debugging mode gives me the line #. I can live with performance penalty at development time...
RSS Feed