[squeak-dev] Re: MVC debugging

Florin Mateoc fmateoc at gmail.com
Tue Sep 7 05:36:15 UTC 2010


 On 9/7/2010 1:03 AM, Andreas Raab wrote:
> On 9/6/2010 9:59 PM, Florin Mateoc wrote:
>>   On 9/7/2010 12:48 AM, Andreas Raab wrote:
>>> On 9/6/2010 9:34 PM, Florin Mateoc wrote:
>>>>    On 9/6/2010 9:56 PM, Andreas Raab wrote:
>>>>> That leads me to believe that we're getting all the way through Debugger class
>>>>> openOn:context:label:contents:fullView:
>>>>> to the end where it says "process suspend" and no new MVC process is being spawned.
>>>>>
>>>>> And that's about where my MVC knowledge ends these days. Any ideas how to spawn the proper MVC scheduler process?
>>>>> It's
>>>>> probably some equvilant to #spawnNewProcessIfThisIsUI: in Morphic but I don't know the magic incantation.
>>>>>
>>>> It should be ScheduledControllers searchForActiveController, but I suspect ScheduledControllers is nil (it should
>>>> be an
>>>> instance of ControlManager)
>>>
>>> This doesn't sound right to me. ScheduledControllers isn't nil (it's "a ControlManager") since I'm running this code
>>> from MVC, but #searchForActiveController ends with "Processor terminateActive" which seems decidedly wrong for a
>>> situation where we want to *debug* the process, not terminate it.
>>>
>>> However, if I instead use ScheduledControllers>>spawnNewProcess (which looks vaguely correct in such that it's indeed
>>> the equivalent of #spawnNewProcessIfThisIsUI:) the result is no lockup, but no debugger is showing up either :-(
>>>
>>> Cheers,
>>>    - Andreas
>>>
>>>
>> It does end with terminateActive, but before that it calls activeController: , which spawns a new process (or it should,
>> it is a primitive)
>
> Yes, but if the old one is the process we want to debug, there is no point in terminating it, is there? After all it's
> the process that hit an error - we want to look at it, inspect it, step through it; not terminate it.
>
> Cheers,
>   - Andreas
>
>

Well, it looks like the method was written with the assumption that 'process' is not the active process. Anyway, I
looked in VW and it uses a very similar method to searchForActiveController (launchBaseProcess), the only difference
being that it does not call terminate.



More information about the Squeak-dev mailing list