<div dir="ltr">Hi all,<br><br>short version of my question:<br><br>  How do I use MenuItemMorph>>#debugAction?<br><br>Now the long version. I was trying to use the debugger to understand<br>how some "demo morphs" are created, starting by this one:<br><br>  World -> new morph... -> from alphabetical list -> L-N -> LineMorph<br><br>I used the debug tool of the halo to copy the MenuItemMorph of that<br>menu entry to a globally-acessible place, and then in a workspace I<br>copied that to a variable local to that workspace called<br>itemLineMorph. I was playing with that variable, and I did a "browse<br>protocol" on it and I was reading its results. One of them, that<br>looked especially interesting, was:<br><br>  MenuItemMorph >> #debugAction<br><br>I tried this,<br><br>  itemLineMorph debugAction.<br><br>and it opens the debugger - really neat! But if I tell the debugger to<br>"proceed" it halts a few steps ahead, with this error:<br><br>  UndefinedObject(Object)>>doesNotUnderstand: #hand<br>  TheWorldMenu>>newMorphOfClass:event:<br>  [] in MenuItemMorph>>invokeWithEvent:<br>  CursorWithMask(Cursor)>>showWhile:<br>  MenuItemMorph>>invokeWithEvent:<br>  MenuItemMorph>>doButtonAction<br>  [] in MenuItemMorph>>debugAction<br>  [] in FullBlockClosure(BlockClosure)>>newProcess<br><br>the problem is that in<br><br>  TheWorldMenu>>newMorphOfClass:event:<br><br>the argument evt is nil... if I set evt by hand there to a keyboard<br>event that holds a CR and then tell the debugger to proceed,<br>everything works - I get a LineMorph on the screen.<br><br>So: what is the _right_ way to run MenuItemMorph>>#debugAction? And<br>what is the right way to write something similar to this,<br><br>  itemLineMorph debugAction.<br><br>but that works out of the box?<br><br>  Thanks in advance!<br>    Eduardo Ochs<br>    <a href="http://anggtwu.net/eev-squeak.html">http://anggtwu.net/eev-squeak.html</a><br><div><br></div></div>