[Newbies] Debug within an error catching block
clinton.blackmore at gmail.com
Sat Dec 11 00:37:35 UTC 2010
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:
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners