Eclipse enables us to debug remote programs as long as the remote server supports this feature. For example, I started Tomcat outside
of Eclipse, on Windows XP, using the catalina.bat file using the following commands on the command line (notice the two environment
variables that need to be set in advance):
set JPDA_ADDRESS=8000
set JPDA_TRANSPORT=dt_socket
catalina jpda start
Incidentally, JPDA stands for the Java Platform Debugger Architecture (architecture for remote debugging; java.sun.com). After starting
Tomcat, I was able to connect to it using the Run, Debug, Remote Java Application (right-click New) option.
Remote Debugging
最新推荐文章于 2024-08-12 15:45:48 发布