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

2 comments
Comment actions Permalink

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.

0

Please sign in to leave a comment.