[Noob] Debugging stuff with Workspace.

Andreas Raab andreas.raab at gmx.de
Mon Mar 8 01:32:13 UTC 2004


> I now have an Explorer...
>
> In the inspector window, I can usually run code like:
>
> "self color: Color green."
>
> I tried the equivalent here but it didn't work. =(

Click on the object you want to send the message to. For example, do
something like: "World explore". Click on the PasteUpMorph and <doit>self
color: Color green</doit>. Now expand the submorphs and click on one of
them. <doit>self color: Color green</doit> This should get you the idea.

> Since I thought I had created a variable "tester" in the Workspace
> so I simply wrote another line:
>
> tester initialize.   ( for some reason my initialize routine
> didn't execute itself from the previous code... )
>
> and, to my supprise, Workspace acted as though it had never
> heard of it!

It didn't because you declared "tester" to be a temporary variable and that
means it is only available inside of the <doit> you execute. To get the
behavior you want, simply don't declare "tester" as temp.

Cheers,
  - Andreas




More information about the Squeak-dev mailing list