[squeak-dev] How to view an old Error in the debugger?

Bert Freudenberg bert at freudenbergs.de
Tue Mar 3 23:59:50 UTC 2015


On 02.03.2015, at 16:11, Chris Muller <ma.chris.m at gmail.com> wrote:
> 
> My app signaled an Error, which was handled at a higher level to
> present a nice message to the user.
> 
> However, I want to see the stack that led to it.  I have the Error
> instance that was signaled and I see I have ToolSet class>>#debug:, et
> al.
> 
> But by the time it unwinds and I get hold of Error, its
> signalerContext is gone, so I can't get anything useful from the
> debugger.
> 
> As this script shows, in the handler I still have access to the
> signalerContext, but once I unwind back out, its gone.
> 
> So is there a way to debug an old error?

You have to suspend the process with the error, and do the error handling in another process. That way you can deal with the error before it is unwound, you can resume etc.

- Bert -



-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4115 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20150303/e37b919e/smime.bin


More information about the Squeak-dev mailing list