[squeak-dev] Re: Is this a bug with Step "Over"?
eliot.miranda at gmail.com
Fri Jun 19 19:39:43 UTC 2015
so the "bug" is that Warning's default action is to open a debugger:
"The user should be notified of the occurrence of an exceptional occurrence
and given an option of continuing or aborting the computation. The
description of the occurrence should include any text specified as the
argument of the #signal: message."
contents: self messageText, '\\Select Proceed to continue, or close this
window to cancel the operation.' withCRs.
contrast that with Halt's defaultAction:
"No one has handled this error, but now give them a chance to decide how to
debug it. If none handle this either then open debugger (see
UnhandledError signalForException: self
With Halt's approach, the debugger can catch it, and catch subsequent
halts; indeed the debugger can catch any unhandled exception raised within
debugging. But it can't, and shouldn't, squash the opeining of a debugger
if the debugged code chooses to do so.
One fix is to use Halt's defaultAction for Warning. I think this is the
right thing to do. Another solution is to accept that Warning behaves
bizarrely and leave it as is. What do y'all think?
On Mon, Jun 8, 2015 at 2:36 AM, marcel.taeumel <Marcel.Taeumel at hpi.de>
> Might it be related to something from here?
> View this message in context:
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Squeak-dev