riorio
riorio

Reputation: 6816

Stopping / Killing a debug thread in IntelliJ

I like to stop the execution of a debug thread that I run in IntelliJ Ultimate 2019.3.

I can stop the entire JVM process, but that will require to restart the web application that takes a lot of time to spin up.

I found this request for such a feature (back from 2015), but I see no new way to do it.

Upvotes: 1

Views: 505

Answers (1)

riorio
riorio

Reputation: 6816

Following y.bedrov comment, the solution was indeed to get to the "Throw Exception" wizard and then to enter there

new RuntimeException("error")

Upvotes: 2

Related Questions