Add instVar in Process
Bob Arning
arning at charm.net
Wed Oct 6 21:14:32 UTC 1999
On Wed, 6 Oct 1999 16:47:51 -0400 "David N. Smith \(IBM\)" <dnsmith at watson.ibm.com> wrote:
>BTW, how do you debug a process other than the one the debugger is
>currently in?
Well, you could try:
Debugger openInterrupt: 'this is a process' onProcess: p.
An example I tried that worked:
| p |
[
p _ Processor activeProcess.
3 timesRepeat: [
(Delay forSeconds: 30) wait.
Processor yield
]
] fork.
(Delay forSeconds: 1) wait.
Debugger openInterrupt: 'this is another process' onProcess: p.
The caveat is that the debugger may not like it if the process starts running again whilst you are poking around.
Cheers,
Bob
More information about the Squeak-dev
mailing list
|