[FIX] ContextCleanupDebugFix (useful enough to incorporate latest changes?)

Doug Way dway at riskmetrics.com
Sat Jul 19 21:43:57 UTC 2003


Is this latest (v2) fix from Anthony useful enough to incorporate for 
now (for people to use and test), even though there are still a couple 
more things which need to be fixed?  It does fix some significant 
problems, and it doesn't look like it introduces any new problems, at 
least.

These are the problems which still need to be fixed, as far as I know:
- Allow a process to be debugged without having to suspend it 
explicitly (as Ned describes below)
- Something I noticed: If you enter some code in a workspace and select 
"debug it" (or "do it" with a halt in the code), the debugger loses the 
temporary variable names

- Doug Way


On Saturday, July 19, 2003, at 11:08 AM, Ned Konz wrote:

> On Friday 18 July 2003 08:36 pm, Anthony Hannan wrote:
>> Ned Konz <ned at bike-nomad.com> wrote:
>>> Can we do something about the broken debugger? I also notice that
>>> #popTo: has lost its return value.
>>
>> Attached is a new version of ContextCleanupDebugFix.  It includes
>> its previous fixes plus fixes to new bugs found by Ned.  I could
>> not reproduce the OSProcess terminate bug.  Maybe Ned's
>> DeadProcessFix fixed it or my changes here fix it.  Process>>popTo:
>> purposely no longer has a return value to match its previous
>> signature.  Decompiler>>popTo: is an entirely different message
>> that is never sent to a Process (it just happens to have the same
>> selector name).
>
> OK, now make it work with the Process Browser :-)
>
> Stepping looks much better; thanks!
>
> However...
>
> You seem to need to suspend a process before debugging it now, for
> some reason (this breaks "debug" from the Process Browser).
> In other words, this no longer works:
>
> [ Project uiProcess debug ] fork
>
> You have to do this instead:
>
> [ Project uiProcess suspend; debug ] fork
>
> Or more accurately, you have to check to see if it's suspended first.
>
> In fact, if you open the debugger on a running process you get the
> interesting effect of having the process running at the same time.
>
> -- 
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
>



More information about the Squeak-dev mailing list