[erlang-questions] Getting line number in backtrace?
Lukas Larsson
lukas@REDACTED
Fri Dec 3 10:57:03 CET 2010
Hi,
there is right now no good way to get line numbers from crashes. In
common_test suites the code is instrumented using a parse_transform to
do this, but that solution works only when used within common_test.
There have been many discussions about this before, for one discussion
see
http://www.erlang.org/pipermail/erlang-questions/2005-August/016477.html
Personally I used to see it as a problem, but after a couple of months
working with it you get used to it. Also because error messages for
cases and if's are the hardest to figure out (imo) I tend to write
smaller function which do my conditions which in turn makes the system
easier to debug and maintain :)
Lukas
On Thu, 2010-12-02 at 19:49 +0000, Brian Candler wrote:
> I am picking up Erlang again after a break, now running Erlang R13B3 from
> Ubuntu 10.04.
>
> I was wondering if it's yet possible for backtraces to include the line
> number where the error occurred? Perhaps some switch needs turning on to
> enable this behaviour? One can always hope :-)
>
> Thanks,
>
> Brian.
>
> ________________________________________________________________
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:erlang-questions-unsubscribe@REDACTED
More information about the erlang-questions
mailing list