How to interrupt a sleeping thread from the debugger?
Greetings,
I am trying to test an application runs in it's own thread and the spends a lot of time sleeping. Part of what I need to test is what happens when the sleeping thread is interrupted. Is there a way to interrupt a sleeping thread (i.e. throw a java.lang.InterruptedException) from the IDEA debugger other than simply stopping execution of the application? I couldn't find anything about it in the online documentation, but I don't know if I am using suitable search terms...
Thanks in advance!
Nathan
请先登录再写评论。
Vote for / comment on http://youtrack.jetbrains.net/issue/IDEA-23341
Thanks for the link Stephen. I'm glad to see that I'm not the only one stumped by this issue. I commented on your issue as you suggested.