[Prev][Next][Index][Thread]
Functional Developer tip
-
To: info-dylan@ai.mit.edu
-
Subject: Functional Developer tip
-
From: Chris Double <chris@double.co.nz>
-
Date: Sat, 8 Sep 2001 04:30:01 -0400 (EDT)
-
Organization: None.
-
Sender: unknown@DOUBLE
-
User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6
-
Xref: traf.lcs.mit.edu comp.lang.dylan:13648
I'm sure this is common knowledge, but for all the time I've been
using Functional Developer I didn't know I could do this so I thought
I'd post it.
When debugging multi-threaded applications you can use the interactor
while all your threads are running. For example, I have a 'scheduler'
thread that runs things at certain times or after a particular
<duration>. I have other threads that add/remove items for the
scheduler to handle.
Running the application in the debugger, I thought I had to pause the
application to do anything with the interactor. Pausing the
application paused all threads. But if I use 'Threads/Select
Thread...' from the menu I can choose from a list of threads. Choosing
the 'Interactive Thread 1' thread allows me to enter interactor
commands while all threads are running. So I can manipulate the
scheduler from the interactor while it is running. Neat.
Chris.
--
http://www.double.co.nz/dylan