debugging critical section

goran.krampe at bluefish.se goran.krampe at bluefish.se
Thu Mar 25 09:14:12 UTC 2004


Ross Boylan <RossBoylan at stanfordalumni.org> wrote: 
> P.S. Though all this talk of licenses is entertaining, if anyone could
> answer my original question in this thread about debugging and
> critical sections I'd really appreciate it.

Well, I didn't look into 3.2 etc, but the following code in a workspace
works fine in my 3.7-5763 image:

| m |
m _ Monitor new.
self halt.
m critical: [Transcript show: 'Hi'; flush].
Transcript show: ' there'; cr; flush.

When debugging, use the "Through" button to step into the block.

regards, Göran



More information about the Squeak-dev mailing list