Thanks Richard.

The SIGQUIT thing sounds potentially useful, but when I send a SIGQUIT to the 
stuck (looping) java process it has no effect. I've tried sending SIGQUIT via 
the Max OS X Activity Monitor and also kill -3, kill -s SIGQUIT, and kill 
-SIGQUIT with the process ID from a terminal window. I know that kill -9 will 
kill it but I get no thread info. The other signals I've tried are all either 
ignored or uninformative.

On Java debuggers: Is there a particular one that I ought to try? I see a big 
universe of these, but with most assuming a particular development environment 
or other setup stuff that I wouldn't know how to do from Clojure... Aside from 
minor dabbling I'm new to the Java universe.

 -Lee


On Mar 17, 2010, at 1:58 PM, Richard Newman wrote:

>> An alternative: Is there a way to watch my running Clojure program without 
>> breaking it, that is to observe the recent call history (of my own 
>> definitions, either all of them or specifically marked ones) from outside 
>> the process?
> 
> If you send a SIGQUIT to the java process, it will print the thread info 
> (including call stack) for each thread to stdout.
> 
> You can also try attaching a Java debugger. They should all work for this 
> purpose, if not showing locals etc.
> 
> -- 
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with your 
> first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

--
Lee Spector, Professor of Computer Science
School of Cognitive Science, Hampshire College
893 West Street, Amherst, MA 01002-3359
lspec...@hampshire.edu, http://hampshire.edu/lspector/
Phone: 413-559-5352, Fax: 413-559-5438

Check out Genetic Programming and Evolvable Machines:
http://www.springer.com/10710 - http://gpemjournal.blogspot.com/

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to