OsgiEquinox plugin provides hotswap support for Eclipse platform development or development of Eclipse plugins. (Do not confuse it with common development in Eclipse!).
Following options must be setup in eclipse.ini for debugee Eclipse instance:
# use application classloader for the framework -Dosgi.frameworkParentClassloader=app # development classpath that is added to each plugin classpath -Dosgi.dev=[extra_classpath] # use dcevm as JVM -XXaltjvm=dcevm # enable hotswapagent -javaagent:PATH_TO_AGENT/hotswap-agent.jar # enable remote debugging on port 8000 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000
extra_classpath points to directory with compiled classes. When new or modified class file is then sent by debugger
to remote JVM, hotswapAgent on remote JVM stores this file into extra_classpath directory.
It is also necessary to setup following hotswap-agent.properties:
then connect the IDE debugger (eclipse, netbeans or idea) to port 8000 and happy hotswapping!