title: Breakpoints ignored by Intellij running Spring Boot with Gradle
body: <p>I'm attempting to debug a Spring Boot application using IntelliJ 14 Ultimate edition.</p>
  
  <p>The application won't run directly in the IDE (see screenshot at the bottom) because of other issues but runs via the command line using the following command:</p>
  
  <pre><code>./gradlew bootRun -Dspring.profiles.active=dev -Dserver.port=15020 -Dorg.gradle.jvmargs="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5245"
  </code></pre>
  
  <p>My setup in IntelliJ:</p>
  
  <p><a href="https://i.stack.imgur.com/PYftV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PYftV.png" alt="enter image description here"></a></p>
  
  <p>I added the following to my <code>build.gradle</code> to get the profile and port arguments accepted:</p>
  
  <pre><code>bootRun { 
      systemProperties =  System.properties 
  }
  </code></pre>
  
  <p>The debugger in IntelliJ connects successfully but it will not pause execution on any breakpoints set. From the IntelliJ console:</p>
  
  <pre><code>Connected to the target VM, address: 'localhost:5245', transport: 'socket'
  </code></pre>
  
  <p>Dependency Versions</p>
  
  <ul>
  <li>Spring: 4.1.3.RELEASE </li>
  <li>Spring Boot: 1.1.8-RELEASE</li>
  <li>spring-boot-gradle-plugin: 1.1.12.RELEASE</li>
  <li>Gradle 2.8</li>
  </ul>
  
  <p>Class path resource error that occurs in IDE and not on CLI:</p>
  
  <p><a href="https://i.stack.imgur.com/xMaan.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xMaan.png" alt="enter image description here"></a></p>