[erlang-questions] Can interactive debugger break on exceptio ns?

Convey Christian J NPRI ConveyCJ@REDACTED
Thu Feb 28 19:48:25 CET 2008


Hi Bengt,

Thanks, that does help, but the function in question has multiple if statements.  That's why I was looking for a line number.

- Christian 

> -----Original Message-----
> From: erlang-questions-bounces@REDACTED 
> [mailto:erlang-questions-bounces@REDACTED] On Behalf Of 
> Bengt Kleberg
> Sent: Thursday, February 28, 2008 12:00 PM
> Cc: erlang-questions@REDACTED
> Subject: Re: [erlang-questions] Can interactive debugger 
> break on exceptions?
> 
> Greetings,
> 
> You have a module called ray_trace (it is the first item 
> after 'if_clause' in the exit value). There you have a 
> function called advance_ray_through_dband (it is the second 
> item after 'if_clause' in the exit value). In that function 
> you have an 'if' clause that did not match/select any of its clauses.
> 
> Does this help?
> 
> 
> bengt
> 
>   On Thu, 2008-02-28 at 11:45 -0500, Convey Christian J NPRI wrote:
> > I'm using the graphical debugger (for the first time).  I'd 
> like it to break at whatever point in my code something goes 
> seriously wrong.  For example, an "if" statement in which no 
> clause evaluates to true.  Is there some way I can get the 
> debugger to stop there?
> > 
> > My general goal is to identify exactly where I'm getting 
> runtime errors.  Perhaps I just don't know how to properly 
> read an Erlang error report, but when I get an error like the 
> following, I just don't know exactly where in my code the 
> error occurred:
> > 
> > 10> ray_trace:advance_ray_through_dband(0, 151, (math:pi() 
> / 4), low_range_boundary, 200, 100, 1500, 1400, 10000).
> > 
> > =ERROR REPORT==== 28-Feb-2008::11:40:06 === Error in 
> process <0.77.0> 
> > with exit value: 
> > 
> {if_clause,[{ray_trace,advance_ray_through_dband,[0,151,7.853982e-01,l
> > ow_range_boundary,200,100,1500,1400,10000]}]}
> > 
> > ** exited: {if_clause,[{ray_trace,advance_ray_through_dband,
> >                                   [0,
> >                                    151,
> >                                    0.785398,
> >                                    low_range_boundary,
> >                                    200,
> >                                    100,
> >                                    1500,
> >                                    1400,
> >                                    10000]}]} **
> > 
> > 
> > 
> > 
> > Thanks for any help or suggestions.
> > 
> > - Christian
> > 
> > Christian Convey
> > Scientist, Naval Undersea Warfare Centers Newport, RI
> > 
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@REDACTED
> > http://www.erlang.org/mailman/listinfo/erlang-questions
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
> 



More information about the erlang-questions mailing list