Eclipse: editing and running code live

Deadly 提交于 2019-12-22 04:46:19

问题


When editing Java code in Eclipse I can modify the code while it's running in various ways and have those changes take effect without restarting my program.

What is the technology underlying this feature? Is it part of Eclipse, or is it something I can do with the command line tools and the tools that come with the JDK?


回答1:


Its part of the JVM and its called HotSwap.

http://download.oracle.com/javase/1.4.2/docs/guide/jpda/enhancements.html




回答2:


This feature is usually called "hot code replace" and was introduced in Java 1.4 - it's part of the Java Virtual Machine Debug Interface and various APIs on top of that.

So it's not specific to Eclipse, but I don't think any of the command line tools that come with the JDK support it.



来源:https://stackoverflow.com/questions/3981746/eclipse-editing-and-running-code-live

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!