简体   繁体   中英

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.

The java application inside the virtual machine will use DCEVM because I want to use the enhanced class redefinition while remote debugging the application.

The same version of Java(compatible with DCEVM) will be installed on both virtual machine and host machine.

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.

I have worked with a similar setup: Tomcat server + Remote debugging in Eclipse for enhanced class redefinition. 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. It's the same for a Tomcat server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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