[erlang-questions] Displaying the line number when error occured

Dominic Williams xpdoka@REDACTED
Mon May 21 09:08:27 CEST 2007


Hello June,

> When an error occurs how do you find the location in the source
> file(without the  information of source line number)? What is the
> conventional way in Erlang?

There is no built-in way to get the source line number of an error.
If you write small functions, the error report is usually sufficient.
Otherwise, there is a tool called smart_exceptions in jungerl, which
is a parse transform that does what you want.

Regards,

Dominic Williams
http://dominicwilliams.net

----





More information about the erlang-questions mailing list