[JAVA] When a breakpoint is set in IntelliJ IDEA but it does not stop in debugging [Gradle]

wrap up

「Preferences」→「Build, Execution, Deployment」→「Build Tools」→「Gradle」 Change the "Build and run" setting from "Gradle" to "IntelliJ".

スクリーンショット 2020-03-19 19.52.55.png


I'm using IntelliJ IDEA, but I'm not so used to Java development. Even if I set a breakpoint and execute it for debugging, it doesn't stop at all. I checked it.

As mentioned in the above summary, it can not be attached to the process as it is unless it is executed from IntelliJ. Execution does not stop. This time it was Gradle, but it seems to be the same with Maven. (I searched and found an article on Maven)

Recommended Posts

When a breakpoint is set in IntelliJ IDEA but it does not stop in debugging [Gradle]
What to do when is invalid because it does not start with a'-'
What to do if Command line is too long appears when building a gradle project in Intellij IDEA
What to do if the breakpoint is shaded and does not stop during debugging
Docker does not work when DOCKER_HOST is specified in WSL2
Pay.JP Solution when it can be done locally but it does not work well in the production environment
Why does it stop when I'm debugging in Eclipse and there are no breakpoints? Links related to
What I checked when I installed Docker Hub in a Windows 10 home environment but it did not start
Creating a project (and GitHub repository) using Java and Gradle in IntelliJ IDEA
[NetBeans] Story when it does not start
How to set when "The constructor Empty () is not visible" occurs in junit
Cause of is not visible when calling a method of another class in java
When displaying a message with a JSF custom validator, the errorClass of h: message is not applied unless SEVERITY_ERROR is set in the message.
When the project is not displayed in eclipse
Guidelines for writing processing when a value exists / does not exist in Java Optional
Processing when an ID that does not exist in the database is entered in the URL