title: Can't start tomcat7 debug mode on macOS
body: <p>Here is a summary:</p>
  
  <p><strong>Objective</strong>: Debug a dynamic web application <br>
  <strong>Environment</strong>: MacOS 10.6.8 / Eclipse Helios 20110218-0911 / Tomcat 7<br>
  <strong>Error</strong>: Failed to connect to remote VM. Connection refused.<br></p>
  
  <p>Story line:</p>
  
  <p>Doing some research on this matter, I found out that the possible problem to this is that I need to start tomcat7 in debug mode which usually acts on port 8000. The command I'm using is <code>./catalina.sh jpda start</code> which didn't work (it starts tomcat but doesn't start debug mode). So I tried other things like adding this 
  variables to the system: </p>
  
  <pre><code>declare -x CATALINA_HOME="/Library/Tomcat" 
  declare -x JPDA_ADDRESS="8000"
  declare -x JPDA_TRANSPORT="dt_socket" 
  </code></pre>
  
  <p>and the problem keeps happening.</p>
  
  <p>this is the return of the command: .<code>/catalina.sh jpda start</code></p>
  
  <pre><code>Using CATALINA_BASE:   /Library/Tomcat
  Using CATALINA_HOME:   /Library/Tomcat 
  Using CATALINA_TMPDIR: /Library/Tomcat/temp 
  Using JRE_HOME:        /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home 
  Using CLASSPATH:       /Library/Tomcat/bin/bootstrap.jar:/Library/Tomcat/bin/tomcat-juli.jar 
  </code></pre>
  
  <p>can anyone help ?</p>
  
  <p>thank you in advance.</p>