I've found several posts with instructions of how to kill java thread with jdb http://www.rhcedan.com/2010/06/22/killing-a-java-thread/ or on SO. This works. Now I want to kill thread with Intellij-IDEA debugger. Is it possible to do?
Asked
Active
Viewed 5,359 times
5
-
Execute System.exit(0). – TheCurious Jan 29 '20 at 12:29
2 Answers
7
There is a little icon on the right side of the Debug view:
This will open 'Threads' tab and there you can right-click on some of them and select 'Interrupt' (and press F9 if you are sleeping on some breakpoint).

Foyta
- 510
- 1
- 7
- 8
-
3In order to have the possibility of **Interrupt thread** you have to: `right click on threads` -> `Customize Threads View` -> check `Show method arguments types` – Radu Linu Dec 08 '17 at 12:50
2
The accepted answer is now outdated (at least it is different for me in IntelliJ 2022.3.2). Just in case anyone (like me) stumbles upon it, there is a button at the right side of the debugger that allows you to show threads (it is disabled by default).
see image below:
Then you'll be able to select the thread you want to modify through the debugger by right clicking it.

Andreas
- 5,393
- 9
- 44
- 53

Miss Skooter
- 803
- 10
- 22