title: Unable to debug a Spring Boot App. The breakpoints always escape
body: <p>Here's my Spring Boot config</p>
  
  <pre><code>@SpringBootApplication
  public class ServicesApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(ServicesApplication.class, args);
      }
  }
  </code></pre>
  
  <p>Running it using </p>
  
  <p>java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n -jar services-0.0.1-SNAPSHOT.jar</p>
  
  <p>Connecting to the Debug port 8000 from Eclipse Standard (Socket Attach) localhost and port 8000.</p>
  
  <p>Here's what I see in Eclipse</p>
  
  <p><a href="https://i.stack.imgur.com/8UUZ9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8UUZ9.png" alt="Eclipse Debug screen"></a></p>
  
  <p>But my breakpoints are not hit. I carefully put breakpoints in the Controller, tried putting them in various places in the Service layer, DAO etc. But the Breakpoints aren't getting hit.</p>
  
  <p>I even tried the Right click -> Debug option in Intellij (Right click on the Spring boot run under Maven Projects view.) The app starts in debug mode and the IDE attaches to it but the breakpoints aren't being hit.</p>
  
  <p>What could be causing this?</p>