Re: [Newbies] Explorer and MessageTally [was: remembering variables]

2008-06-05 Thread peter h meadows


How do I use TracingMessagesBrowser?

If I try to install it with 'Squeak Map Package Loader' I get Error: No 
installer found for package. (this happens in every image that I've 
tried).


If I try to install it from MC I open the repo and click on the mcz and 
squeak hangs. when interrupted it says it was in 
HTTPSocket(OldSocket)waitForDataUntil:


I noticed TracingMessagesBrowser is in the FunSqueak image so I tried that 
but I don't see any way to open it.


So confusing. Thanks in advance for your help.

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Explorer and MessageTally [was: remembering variables]

2008-06-05 Thread Edgar J. De Cleene



El 6/5/08 5:14 AM, peter h meadows [EMAIL PROTECTED] escribió:

 I noticed TracingMessagesBrowser is in the FunSqueak image so I tried that
 but I don't see any way to open it.


And here you have the .sar, works in several Squeaks, including still in
progress SqueakLightII (unoficial Squeak 3.11)

Edgar



Tracing Messages Browser.2.sar
Description: Binary data
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Explorer and MessageTally [was: remembering variables]

2008-06-05 Thread peter h meadows


I found something explaining the TracingMessagesBrowser and it works in 
the FunImage, but I still can't install it in any other image.


When you browse Squeak code, one of the browsers you will invariably use 
VERY frequently is a Methods browser.  This browser appears whenever you 
browse senders or implementors of a method, or references to a class 
or variable, among other things.  It is a two-paned browser, methods list 
in the upper-pane, code in the lower-pane.


 So just keep exploring code normally, the next time you use senders or 
implementors (something any Smalltalker does about 1000 times per day) you 
will see the Tracing Messages Browser.


 These browsers look the same initially, but by having the traceMessages 
preference set, they take on enhanced behavior as you trace method 
calls.  The SqueakMap entry describes it well:


 I look like a standard methods browser with methods in the upper pane, 
code in the lower. As you browse senders and implementors, the upper pane 
is built into a stack rather than opening new method browsers, reducing 
window profileration. Implementors are indented below the currently 
selected method, senders are outdented above. You end up with a flow of 
the execution of methods across multiple classes all in one place.  The 
stack is quickly customized by easy-removal of unwanted methods. First, 
the upper pane is multi-select, and can handle rapid, sweeping gestures of 
the mouse without dropping selections (shift+clicking is also supported). 
Once methods are selected, you can quickly remove them (just from the 
browser) with otherwise unused Command+f.


 I think this browser has saved me years of closing windows. 
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Explorer and MessageTally [was: remembering variables]

2008-06-05 Thread Edgar J. De Cleene



El 6/5/08 5:14 AM, peter h meadows [EMAIL PROTECTED] escribió:

 I noticed TracingMessagesBrowser is in the FunSqueak image so I tried that
 but I don't see any way to open it.
TracingMessagesBrowser don't open new windows.
Instead, when you navigate the system looking for senders or implementors,
etc, all go to top window instead opening new windows .
Any troubles with FunSqueak , I wish know



Picture 2.png
Description: Binary data
___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


[Newbies] Explorer and MessageTally [was: remembering variables]

2008-06-03 Thread Klaus D. Witzel

On Tue, 03 Jun 2008 05:57:48 +0200, peter h meadows wrote:

Ah. Well, more often than not the variables in my code stay as one  
'type' of thing. And I thought that generally they would otherwise  
things would get really confusing!?


For this part of your question use Squeak's explorer. Try (World explore)  
to get an idea what it is about, for example expand the submorph branches  
that you see there.


Sometimes when I try to understand how a program is working I get lost  
in the debugger. What I'd like is a kind of overview of what's going on.


For this part of your question try (MessageTally spyOn: [Object  
compileAll]).



Something I can browse and focus in on the parts that seem interesting.


For MessageTally the parts of a computation which really do something are  
interesting.


In theory I can do this with the system browser but it doesn't tell me  
how everything fits together. I want to see an overview of how all the  
parts fit together.. Who uses what.. Which bits are connected.. The  
order in which things are done, etc.


MessageTally tells you how the parts of your computation fit together,  
who's using what, and the order in which things are done.


Can I get the debugger to show a tree of message sends, that I can  
browse? Something like that?


Yes, MessageTally does that for you: a tree of message sends. From the Spy  
results, you can select a class and browse it for more details, or a  
method and browse its senders or implementors for more details.



Any ideas? thx.




peter == peter h meadows [EMAIL PROTECTED] writes:


peter Oh. I'm still very new to smalltalk. It seemed like it would  
help me to
peter understand what's going on. I wanted it to remember everything.  
E.g if
peter the thing is an array it will tell me what has been stored in  
it. Also,
peter wouldn't it help with code completion? If it knows what type of  
object

peter it was in the past it can guess which messages I want to send to
peter it. That would be useful.

But the problem is that a given type in the past is not any indication  
of

a type in the future.

You're not thinking smalltalk yet.  Stop worrying about types. :)

Oh, and they aren't types.  They're instances of classes.

If you want to see what's going on, learn to single step in the  
debugger.

It's quite informative.




___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners


Re: [Newbies] Explorer and MessageTally [was: remembering variables]

2008-06-03 Thread Herbert König
Hello Klaus,


KDW Yes, MessageTally does that for you: a tree of message sends. From the Spy
KDW results, you can select a class and browse it for more details, or a
KDW method and browse its senders or implementors for more details.

interesting idea to use it this way! But MessageTally IMHO only shows
what it finds on the stack when it peeks. So it can miss some methods
running seldom and quick.

So you can do MessageTallytallySends: [your tallied block] which
uses the simulator (sloow!!) but gets you everything.

And to be real useful with long class names and deeply nested sends
one might have to patch some of the class side methods of MessageTally
in the defaults category.

After looking I see it has become better with 3.9 so the latter
applies only for 3.8 and older.

-- 
Cheers,

Herbert   

___
Beginners mailing list
Beginners@lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/beginners