Debug the API implementation in Eclipse
To debug the API implementation in Eclipse, it is necessary to have:
- Eclipse, Java JDK, and NeoLoad installed on the machine,
- the JAR including the compiled sources of the Java project to debut specified in NeoLoad, as described in Data Format Extensions.
- Warning: The following procedures require advanced Java programming skills. If the configuration is inaccurate, NeoLoad may not start properly.
- To debug the NeoLoad recording
- Under Windows, insert a new line with
-Xdebug
-Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=y
at the end of the file:
- NeoLoad 5.5/bin/NeoLoadGUI.vmoptions when NeoLoad is started with NeoLoadGUI.exe, or
- NeoLoad 5.5/bin/NeoLoadGUI_NoPrivilege.vmoptions when NeoLoad is started with NeoLoadGUI_NoPrivilege.exe.
- In Eclipse, click on the Debug icon, then Debug configuration.
- Select Remote Application, and click + (plus).
- Select the project.
- Start the NeoLoad Controller.
- In Eclipse, click Debug.
- In the Java project code, locate the breakpoints.
- Start the NeoLoad recording.
- To debug the NeoLoad load generation
- In the file NeoLoad 5.5/conf/agent.properties, go to the line lg.launch.vm.parameters=…
- At the end of the line, insert a space and -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8001,suspend=y
- Start the NeoLoad Controller.
- In Eclipse, click on the Debug icon, then Debug configuration.
- Select Remote Application, and click + (plus).
- Update the Port field from 8000 to 8001.
- Select the project.
- In the Java project code, locate the breakpoints.
- Start the NeoLoad load generation. You are advised to use one Virtual User only in this mode.
- In Eclipse, click Debug, then select the starter already created.
Home