Re: [Newbies] How do you start to understand a new Squeak 'program'?

2008-02-08 Thread Yoshiki Ohshima
Andy, (What is Etoy Outliner?) As Oscar wrote, examining the "live" application is the best way. Insert a breakpoints by putting "self halt." into an event handler/callback method of an application and, say, press the button that invokes it. You can step through it while looking at the act

Re: [Newbies] How do you start to understand a new Squeak 'program'?

2008-02-08 Thread Oscar Nierstrasz
Hi Andy, One useful trick is to put a "self halt." somewhere in the code you want to analyze. Then when you run the code the debugger will stop at that point, and you can start stepping through the code. Of course the debugger provides access to real objects, so you can inspect anythin

[Newbies] How do you start to understand a new Squeak 'program'?

2008-02-08 Thread Andy Burnett
As my next step in learning Squeak, I thought I would try to enhance the EToy Outliner widget. However, as soon as I started to do this I realised that I didn't really know how to 'grok' the code. So, when the experts in this list, are faced with a new application, how do you go about understanding