My Idea setup cannot stop on breakpoints and not even stop the launched/debugged process.
Environment:
- ubuntu 20.04.1 LTS
- openjdk version "1.8.0_275" 64 bit
- IntelliJ Idea 2020.2
Steps to reproduce:
- Create a maven "demo" application from https://start.spring.io/ (Spring Web dependency will suffice)
- Download IntelliJ Idea and launch
idea.sh - Open
pom.xmlfile to import the project in the IDE - Add a
@RestControllerreturning "Hello world" for@GetMapping("/") - Drop a couple of breakpoints in the App and in the newly created controller
- Configure a maven launcher with
spring-boot:runcommand line - Hit the
debugbutton
The application launches and you can call http://localhost to see the "Hello world"; you can even change the code and the app nicely reloads but ... it does not stop on breakpoints.
When you hit the stop button the IDE detaches from the process but does not stop it.
What's wrong with my setup?
BTW: debugging works smoothly for a simple cli maven java application.