This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Profiling & tracing & questions.


hjstein@bfr.co.il (Harvey J. Stein) writes:

> I can't seem to get it to work:
> 
> guile> (trap-enable 'exit-frame)
> ERROR: In procedure evaluator-traps-interface in expression
> (evaluator-traps-interface (append flags #)):
> ERROR: unhandled-exception: exit-frame #<debug-object -40001028> ()
> ABORT: (misc-error)

It seems that it works excellently.  :)

The above shows that you get an exception when you exit the stack
frame of the call to `trap-enable' which is what you told the
evaluator to generate.

The trick is to install the handlers before enabling the traps.

/mdj