Determine where a match fails

Michael McDaniel erlang@REDACTED
Wed Jan 4 19:01:16 CET 2006


On Wed, Jan 04, 2006 at 10:15:20AM -0700, Dave Smith wrote:
> Greetings,
> 
> 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. :)
> 
> Thanks.
> 
> D.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
What I use is to print to screen or log the line number using
the line macro ?LINE

I still have to know about where the problem is in the code,
so it is not a complete solution.

~Michael





More information about the erlang-questions mailing list