简体   繁体   English

DCEVM远程调试

[英]DCEVM remote debuggin

I want to create a development environment in which my java application will run in a virtual machine and the code will be written and managed on the host machine. 我想创建一个开发环境,其中我的Java应用程序将在虚拟机中运行,并且代码将在主机上编写和管理。

The java application inside the virtual machine will use DCEVM because I want to use the enhanced class redefinition while remote debugging the application. 虚拟机内部的Java应用程序将使用DCEVM,因为我想在远程调试应用程序时使用增强的类重定义。

The same version of Java(compatible with DCEVM) will be installed on both virtual machine and host machine. 在虚拟机和主机上都将安装相同版本的Java(与DCEVM兼容)。

Is there someone who dealt with a similar setup in the past and who can advise whether this setup is feasible or not ? 过去有没有人处理过类似的设置,可以建议这种设置是否可行?

I am very interested to know whether the remote debug and enhanced class redefinition will work or not in this setup ? 我很想知道远程调试和增强类重定义在此设置中是否可以工作?

Yes this will work. 是的,这将起作用。 You can use DCEVM+HotSwapAgent in the virtual machine and connect to it via your remote debugger in IDE in host machine. 您可以在虚拟机中使用DCEVM + HotSwapAgent,并通过主机中IDE中的远程调试器连接到它。

I have worked with a similar setup: Tomcat server + Remote debugging in Eclipse for enhanced class redefinition. 我使用了类似的设置:Tomcat服务器+ Eclipse中的远程调试以增强类重定义。 They were on the same machine, but the setup and configuration is essentially the same. 它们在同一台计算机上,但是设置和配置基本相同。

Refer https://web.liferay.com/web/enrique.valdes.1/blog/-/blogs/java-classes-instant-reloading-using-dcevm-hotswap-agent for steps on how to set this up. 有关如何进行此设置的步骤,请参阅https://web.liferay.com/web/enrique.valdes.1/blog/-/blogs/java-classes-instant-reloading-using-dcevm-hotswap-agent It's the same for a Tomcat server. Tomcat服务器是相同的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM