[Newbies] Debug within an error catching block
Clinton Blackmore
clinton.blackmore at gmail.com
Sat Dec 11 00:37:35 UTC 2010
Greetings.
In one area of code, I need to set a break point and do some debugging.
This code is called deeply within a block that is wrapped up so that the
end user does not see errors that occur.
In very simplified form, it is like this:
[ self error: 'Throwing an error' ] ifError: [:err :rcvr | Transcript show:
'Trapped error']
When I 'do it', this example will always trap the error instead of breaking
into the debugger (which, quit clearly, it is designed to do.)
While I shudder to think of how easily it could be abused, there is no way
to break into a debugger anyway, is there (without finding and disabling the
outer block that is sent ifError)? Perhaps a hypothetical self
untrappableError or self bringUpTheDebuggerPlease?
Cheers,
Clinton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/beginners/attachments/20101210/5a5d8c84/attachment.htm
More information about the Beginners
mailing list