title: Eclipse 3.5.2 Does Not Hit Breakpoints when Remote Debugging on Tomcat 6»
body: <p>This is a local-to-local debug setup, from an Eclipse instance to Tomcat on localhost.</p>
  
  <p>I've tried starting tomcat from both <code>/etc/init.d/tomcat6 start</code> and from <code>/usr/share/tomcat6/bin/catalina.sh jpda start</code> (ie from the startup command and from <code>CATALINA_HOME</code> command), no change in result.</p>
  
  <p>The <code>JAVA_OPTS</code> to Tomcat are </p>
  
  <blockquote>
    <p>JAVA_OPTS="-Djava.awt.headless=true
    -Xmx256m -XX:+UseConcMarkSweepGC -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n"</p>
  </blockquote>
  
  <p>Eclipse project is a simple Scala Lift (2.8.1/2.3) web project generated from the default Lift Maven archetype (this has worked in debug before, so it's not the archetype's fault).</p>
  
  <p>Eclipse Remote Debugging  configuration is default, except port changed to <code>8888</code>. Source path includes project directory. </p>
  
  <p>Maven is used for build/deploy, so a <code>mvn clean</code> and <code>mvn tomcat:redeploy</code> is done after breakpoints are set. </p>
  
  <p>Remote Debug session is launched, connects to Tomcat as seen in screenshot.<img src="https://i.stack.imgur.com/Wi53G.png" alt="eclipse connected to tomcat debug port"></p>
  
  <p>Tomcat does seem to be in debug mode, as evidenced by catalina.out:</p>
  
  <blockquote>
    <p>16:19:37.865 [http-127.0.0.1-8080-1]
    DEBUG comet_trace - AJAX Request:
    C8436967E450AD62D37654BBB3B5FCB9
    Map(F27626326198LU12KZ -> List(foo), q
    -> List(f0), limit -> List(10), timestamp -> List(1306271977857))</p>
    
    <p>16:19:37.866 [http-127.0.0.1-8080-1]
    DEBUG comet_trace - AJAX Response:
    C8436967E450AD62D37654BBB3B5FCB9
    PlainTextResponse(,List(),200)</p>
    
    <p>16:19:37.870 [http-127.0.0.1-8080-1]
    INFO  net.liftweb.util.TimeHelpers -
    Service request (GET)
    /bsa2/search/ajax_request returned
    200, took 11 Milliseconds</p>
    
    <p>16:19:44.312 [http-127.0.0.1-8080-1] DEBUG
    comet_trace - AJAX Request:
    C8436967E450AD62D37654BBB3B5FCB9
    Map(F27626326198LU12KZ -> List(foo), q
    -> List(), limit -> List(10), timestamp -> List(1306271984133))</p>
  </blockquote>
  
  <p>Web site is accessed with browser on the normal Tomcat URL (eg <code>http://localhost:8080/test/cleanproject</code>).</p>
  
  <p>No breakpoint is ever reached.</p>