远程调试需要在tomcat的server.xml中做哪些更改

远程调试需要在tomcat的server.xml中做哪些更改,xml,tomcat,Xml,Tomcat,我正在aws上部署我的项目。我想进行远程调试。这里是默认可用的server.xml <Engine name="Catalina" defaultHost="localhost" debug="0"> <!--For clustering, please take a look at documentation at: /docs/cluster-howto.html (simple how to) /docs/confi

我正在aws上部署我的项目。我想进行远程调试。这里是默认可用的server.xml

<Engine name="Catalina" defaultHost="localhost" debug="0">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true" debug="0">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
  </Service>
</Server>


远程调试需要做哪些更改?有人能指导我吗?

如果您使用的是Eclipse,可能会更容易

  • 选择运行>>打开调试对话框
  • 选择远程Java应用程序>>新建
  • 用远程服务器填充主机和端口

  • 如果您使用的是Eclipse,可能会更容易

  • 选择运行>>打开调试对话框
  • 选择远程Java应用程序>>新建
  • 用远程服务器填充主机和端口

  • 这不是为远程调试配置tomcat的地方。请阅读,这不是配置tomcat进行远程调试的地方。阅读