且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

tomcat服务器实例在eclipse中调试

更新时间:2023-11-17 23:00:34

eclipse tomcat插件在运行时产生单独的JVM,可以在窗口中确认任务列表,在unix系统中使用ps或使用visualVM。

the eclipse tomcat plugin spawns a separate JVM while running, you can confirm that in the windows task list, using ps in unix like systems or using visualVM.

该虚拟机以调试模式启动,由插件本身设置的JPDA参数,调试机制起作用,它基于JVM功能。您可以使用JDK附带的可视虚拟机确认使用哪些jpda参数。

That VM is launched in debug mode with the JPDA parameters set by the plugin itself, and that is how the debugging mechanism works, it's based on the JVM functionality. You can confirm which jpda parameters are used by using visual VM, that comes with the JDK.

我不认为您可以覆盖eclipse插件设置的JPDA参数对于你,这就是为什么在第1点)它没有工作。 2)通过远程调试工作,通过自动设置参数并在服务器启动后连接远程调试器。

I don't think you can override the JPDA parameters that the eclipse plugin setted for you, that's why in point 1) it did not work. For 2) it works via remote debugging made transparent by automatic setting the parameters and connecting the remote debugger once the server starts.