[squeak-dev] Re: [Masters of Squeak] Have fun figuring this out

Andreas Raab andreas.raab at gmx.de
Thu Jun 25 16:15:00 UTC 2009


Igor Stasenko wrote:
> I prefer a more shorter way to get puzzled:
> 
> type:
> 0
> 
> and then use 'debug it' from menu
> 
> :)

There is an easy fix for it, just change one expression in

    ParagraphEditor>>debug:receiver:in:

from this

   [debugger interruptedContext method == aCompiledMethod]
       whileFalse: [debugger send].

to instead

   [debugger interruptedContext method == aCompiledMethod or:[guineaPig 
isTerminated]]
       whileFalse: [debugger send].

The issue is that because the expression has no send the simulation runs 
away and causes a bunch of problems.

BTW, since this thread is about mastering Squeak, if you can explain why 
the runaway simulation suspends the simulator process I will personally 
acknowledge your mastery of Squeak. I couldn't figure out why that 
happens :-)

Cheers,
   - Andreas



More information about the Squeak-dev mailing list