title: How can I debug a Java Google App Engine app in IDEA while using the GAE Maven plugin?
body: <p>I have set up my pom.xml <a href="https://github.com/sanity/LastCalc/blob/master/pom.xml" rel="noreferrer">like so</a>, and it appears to be working for the most part, I can start the devserver and update the application.</p>
  
  <p>My problem is that I can't seem to debug the devserver.  I tried launching the devserver maven goal in debug mode from within IDEA, but when I set breakpoints they are ignored.</p>
  
  <p>I found in the GAE Maven plugin docs that you can launch the devserver in debug mode with the following configuration:</p>
  
  <pre><code>&lt;jvmFlags&gt;
    &lt;jvmFlag&gt;-Xdebug&lt;/jvmFlag&gt;
    &lt;jvmFlag&gt;-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n&lt;/jvmFlag&gt;
  &lt;/jvmFlags&gt;
  </code></pre>
  
  <p>However I don't know how to tell IDEA to connect the debugger when I start the Maven Run/Debug configuration.</p>
  
  <p>Can anyone point me in the right direction?</p>