on 06-04-2014 9:06 AM
Hi,
I have followed the below procedure to configure the debugging in Eclipse for Inventory Manager 3.2.
I have modified agentry.ini file with the below entry:
nonStandardJavaOptions=-Xdebug -Xrunjdwp:transport=dt_socket,address=7090,server=y,suspend=n
In Eclipse,Select Run->Debug configuration.
Select the Remote Java Application in the list of configuration types.
Create a new remote connection for the particular java project.
In connect tab give following details.
Host = localhost
port = 7090.
Put a breakpoint in your java classes and save the configuration.
But when I click on the "Debug" button in Debug Configurations window after providing the above details, I am getting the below error message.
- Shyam
Tags edited by: Michael Appleby
Thanks to all.
I am able to debug after changing the port numbers.
Shyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Shyam,
As Tahir mentioned, you only specify localhost if the Agentry server is on the same machine as your eclipse editor.
The port number can be anything you want as long as it is not in use. The default port in eclipse for remote debugging is port 8000.
After updating your Agentry.ini you must restart your Agentry server. During the restart you should see the following appear in the console window to indicate Agentry is ready for debugging.
Java Back End: Initialized.
Listening for transport dt_socket at address: 8000
Java Back End: Java Virtual Machine loaded.
In my example I have setup my Agentry.ini to debug on port 8000.
After restarting my Agentry server then you can try to connect from within Eclipse.
If you are getting errors you should verify that
1) the host reference is correct
2) any firewalls between the editor and server are setup to allow traffic on the port
Hopefully this will help you get started.
--Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1)Try to restart your Eclipse.
2)Try to change the port.
For Debugging
Go to Agentery.ini file
[Java-1]
nonStandardJavaOptions=-Xdebug -Xrunjdwp:transport=dt_socket,address=7100,server=y,suspend=n
then go to Eclipse
Debug perspective
Port should be same as in Agentry under Java in our case it is 7100.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shyam,
Are eclipse and server in a same machine ?
Have you started your newly defined remote java connection ?
Regards,
Tahir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.