Determine where a match fails
Wed Jan 4 18:49:09 CET 2006
On 4 Jan 2006, at 17:15, Dave Smith wrote:
> Is there a way to determine the File/Line where a badmatch error is
> generated? Obviously, you get a stack trace with the function call,
> but more often than not, that's not quite descriptive enough, since
> all you get is the value that didn't match...something.
> Any guidance would be appreciated. :)
You might like to try out the smart exceptions package from jungerl.
I believe this adds such things.
I've never actually tried it myself, but it might just do the job.
More information about the erlang-questions