[Cuis-dev] Improve "debug action" for MVCMenuMorph

Juan Vuletich juan at jvuletich.org
Mon Apr 13 08:02:27 PDT 2026


Hi Facu,

I see the problem, but I think your solution is "too clever". I prefer a 
simpler approach that is easier to understand, and more robust against 
future changes. The user will need to do a couple of clicks in the 
debugger, but I think that's ok.

Just pushed it. Please take a look.

Thanks,

On 2026-04-05 4:38 PM, Facundo Javier Gelatti via Cuis-dev wrote:
> Hello again!
>
> I noticed a similar issue also happens with some modal MenuMorphs (for 
> example, when trying to debug the action of clicking on an item of the 
> font selection menu), so I've changed MenuItemMorph to also account 
> for that.
>
> I attach two change sets: the one that says 
> "Increment_ForModalMenuMorphs" should be filed-in after the one on my 
> first email; the one that says "AllInOne" is a consolidated change set 
> that includes everything, if you want to just review that one directly.
>
> Cheers!
> Facu
>
> El jue, 2 abr 2026 a las 16:01, Facundo Javier Gelatti 
> (<javiergelatti at gmail.com>) escribió:
>
>     Hello!
>
>     I attach some changes to improve the "debug action" option for the
>     MVCMenuMorph. It's a bit ad-hoc, but I think it's encapsulated
>     enough (all the changes are in MenuItemMorph) and it gets the job
>     done. Below I explain the use case.
>
>     Say that you want to debug what happens when you try to browse
>     this change set. After you drop the file, you could use the "debug
>     action" option on the halo of the "browse code" item:
>     image.png
>
>     But if you do that, you'll notice that you end up in the
>     #selectMVCItem: method, unable to see the actual code you were
>     interested in. After you file-in this change, you correctly end up
>     on the #fileNamedDropped: method.
>
>     Cheers!
>     Facu
>
>
-- 
Juan Vuletich
www.cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260413/bd2d2768/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 81010 bytes
Desc: not available
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20260413/bd2d2768/attachment-0001.png>


More information about the Cuis-dev mailing list