I like to generate a thread dump programmatically. I\'ve learned that there a basically two ways to do it:
There is a third way: Thread.getAllStackTraces()
http://java.sun.com/javase/6/docs/api/java/lang/Thread.html#getAllStackTraces()
This is much easier than the debugger interface...