[squeak-dev] Transcript warning in MVC

David T. Lewis lewis at mail.msen.com
Wed Sep 17 01:55:55 UTC 2014


On Mon, Sep 15, 2014 at 04:33:55PM -0500, Chris Muller wrote:
> UI code can be notoriously difficult to debug, eh?  One primitive tool
> I sometimes use is a good ol'e Smalltalk global, say #X.  I make it an
> OrderedCollection and then, in #setUpdatablePanesFrom:, just before it
> prints to the Transcript, add in this line:
> 
>   X add: thisContext longStack.
> 
> Or,
> 
>   X add: { thisContext longStack. subViews copy }
> 
> can sometimes give some clues.
> 

As long as we are confessing our hacks for debugging MVC, I also use
OSProcess class>>trace: to spit debugging messages to the console without
interfering with the MVC user interface.

Dave



More information about the Squeak-dev mailing list