stepping through an exception

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

stepping through an exception

1wbj9yejnp001
When  a #signal: is stepped over in the debugger, it seems that the process is
resumed, instead of stopping in the exception handler. Is this true?

Alan R.


Reply | Threaded
Open this post in threaded view
|

Re: stepping through an exception

Blair McGlashan
"alan r" <[hidden email]> wrote in message
news:[hidden email]...
> When  a #signal: is stepped over in the debugger, it seems that the
process is
> resumed, instead of stopping in the exception handler. Is this true?

Yes and no. It won't step into the exception handler, but the process is not
technically "resumed", i.e. execution semantics will not be affected by the
debugger. Execution will continue after the handler unless the handler
explicitly resumes execution. It would certainly be more convenient if
step-over did step into the handler, but that is not the way it works at the
moment. Basically a step-over will continue until the next breakpoint in the
current frame, or a calling frame. Since exception handlers are activated as
frames on top of the faulting frame, the debugger will continue stepping
until execution returns to the step frame or its caller.

Regards

Blair