To set up remote debugging in the Eclipse development environment, the following steps are necessary:
- Open the debug configuration dialog by selecting Run > Debug Configurations....
- Double-click Remote Java Application.
- Enter a name for the configuration (here IncrementLength, any name can be entered).
- Select the new project (plug-in) (here de.eplan.example).
- Enter a host (here locahost).
- Enter a port number (here 8000).
You have to create a RUN configuration to be able to start EEC from the Eclipse environment:
- Double-click Eclipse Application.
- Enter a name for the RUN configuration (here EEC).
- Select de.eplan.engineeringcenter.product from the drop-down list for Run a product.
- For Execution environment select the current JDK (here JavaSE-1.8 (jdk1.8.0_51_x86_64)).
- Start debugging with [Debug].
Eclipse opens the Debug perspective and starts EEC.
If EEC has been closed it can be called up at any time again: