|
Debugging NFX Components using Eclipse
Fusion 9.1 introduces a new feature to help component developers debug their code. All that is required is a debugger that enables you to debug remotely.
While working with the components in NetObjects Fusion we have worked with Eclipse. We will use it to enumerate the steps.
- Create a project with the classes for your components in Eclipse. Make sure that you compile your components with debugging information.
- In Eclipse, choose the menu Run/Debug…
- In the dialog that opens up create a new Remote Java Application:
a. Select the project with the sources b. Connection Type: Standard (Socket Attach) c. Connection Host: localhost d. Connection Port: 8787
- Close.
- Start Fusion with –-jdbg as parameter. The moment the JVM starts to load (a component is dropped or a page containing a component is loaded) the embedded JVM will try to connect with the remote debugger on port 8787.
- From Eclipse, choose the debugging configuration created in the previous steps.
- You will be able to set breakpoints in your code and step through it.
To download Eclipse, please visit The Eclipse Foundation website at: http://www.eclipse.org/
|