[squeak-dev] Minor issue with NewColorPickerMorph and question about Object>>changed: and how to debug

Chris Muller asqueaker at gmail.com
Tue Nov 10 17:16:37 UTC 2015


I hear you about trying to debug the Listener pattern, its a pain.

One thing I do when I can't use the debugger is create a global
"object log" -- an OrderedCollection -- and then, in Object>>#update:
(or whereever) capture the current stack into your log:

    MyGlobalLog add: thisContext longStack



On Tue, Nov 10, 2015 at 8:45 AM, karl ramberg <karlramberg at gmail.com> wrote:
> In the NewColorPickerMorph if you scale the alpha of the selected color, the
> UI will not turn let you set alpha back to fully opaque. You can pull the
> slider all the way to the max but the selected color will remain
> translucent.
>
> This is a minor issue but the big issue is how do debug this and similar
> issues which is set up with the Object>>update: or Object>>changed:
>
> I find that I'm going into a rabbit hole each time I try to debug these
> message sends. I can't seem to get a grip on what or where the messages and
> changes in state are from.
>
> Do anybody have any advise on good practice for debugging Object>>update: or
> Object>>changed: ?
>
> Best,
> Karl
>
>
>


More information about the Squeak-dev mailing list