Hi Laurent,

let me share my way of solving this. My method works from a Workspace or
Inspector/Explorer. What I do is invoke "drawOn:" manually, passing a
NullCanvas (a "dummy" canvas).

Suppose I have a reference (in a Workspace/Inspector) for my buggy morph,
called "m":

m drawOn: (NullCanvas new).

This should trigger the debugger and show you the error. You can then
debug, explore, fix, change, etc. Repeat as needed. Even if the bug is
fixed, the Morph stays in this "erroneous" state. That's why when the bug
is fixed you should call "resumeAfterDrawError" on your Morph:

m resumeAfterDrawError.

And it will re-draw it again.

Hope it helps,

Sebastian



2012/11/4 laurent laffont <[email protected]>

> Hi,
>
> sometimes I have a PluggableListMorph that displays a big red square (see
> attached screenshot). How can I debug why this happens ?
>
> [image: Inline image 1]
>
> Cheers,
>
> Laurent
>

<<image.png>>

Reply via email to