title: eclipse tomcat debug remote application
body: <p>I work with tomcat 9 and Eclipse oxygen. </p>
  
  <p>I want to debug a remote application from </p>
  
  <p><a href="http://localhost:8080/regislab/" rel="nofollow noreferrer">http://localhost:8080/regislab/</a></p>
  
  <p>I followed the steps:</p>
  
  <p>1.- In the directory Tomcat bin directory I created a setenv.bat</p>
  
  <pre><code>CATALINA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n"
  JPDA_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n"
  </code></pre>
  
  <p>2.- I started the server with catalina.bat jpda start</p>
  
  <p>3.- I configured Eclipse </p>
  
  <p>From Debug As -> Debug Configurations -> New</p>
  
  <p><a href="https://i.stack.imgur.com/No4dT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/No4dT.png" alt="enter image description here"></a></p>
  
  <p>4.- I clicked the button debug</p>
  
  <p>I have breakpoints but the Eclipse debug perspective doesn't work.</p>
  
  <p>In the tomcat console I see </p>
  
  <pre><code>Picked up _JAVA_OPTIONS: -Xmx512M
  Listening for transport dt_socket at address: 8000
  04-Nov-2019 09:09:06.362 INFORMACI├ôN [main] org.apache.catalina.startup.VersionLoggerListener.log Nombre de la versi├│n del servidor:   Apache Tomcat/9.0.27
  </code></pre>
  
  <p>How can I configure Tomcat server and Eclipse to debug a remote application?</p>