The session in the debugger

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
21 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Re: Re: The session in the debugger

Avi Bryant-2
On 2/9/07, Klaus D. Witzel <[hidden email]> wrote:

> Seasiders,
>
> have a look at the two new changesets which I added to
>
> - http://bugs.impara.de/view.php?id=5957
>
> DoItWithContextVariable-kwl.1.cs resolves accessing the context of the
> debuggee, as discussed with Lukas.
>
> WADynamicVariable-kwl.1.cs uses (DoItWithContextVariable raiseSignal) just
> for accessing the context of the debuggee (if it needs so).

FWIW, here's a slightly simpler (and possibly more fragile) bit of
code that does something similar:

WADynamicVariable>>defaultAction
        |c d |
        c _ thisContext.
        [c notNil] whileTrue:
                [c receiver class = TextMorphEditor ifTrue:
                        [c receiver model class = Debugger ifTrue:
                                [d := c receiver model selectedContext.
                                [d notNil] whileTrue:
                                        [d receiver = self class ifTrue:
                                                [self resume: (d tempAt: 1)].
                                        d := d sender]]].
                c := c sender].
        ^ self class defaultValue
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
12