is there a fix so that cmd+. on mac open a debugger when we get a loop?

Ned Konz ned at squeakland.org
Sun Feb 13 23:42:51 UTC 2005


On Sunday 13 February 2005 2:06 pm, John M McIntosh wrote:
> Actually figuring out why the interrupt key doesn't work is yet to be  
> done.
>
> What is interesting is the BotBalloonMorph class only appears here.
> The other hundreds of method contexts (Stef how many?) only take us to  
> this point, swirling in fullBounds

The problem is obviously that he's got infinite recursion, calling fullBounds 
from within something called by adjustLayoutBounds.

I'd suggested in the past that we do one or more of:

* When we get an interrupt we check for recursion, and if it's in a Morph's 
code then mark that morph (or perhaps all the morphs of that class) as having 
errors (if the recursion is in a drawing method) or just delete them and 
stick them in the trash can or somewhere if the error is in somewhere else 
(as it is here).

* If we get an interrupt while we're trying to open a debugger (and failing, 
presumably) then we drop into MVC and open up a debugger there.

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list