cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging Agentry application in Eclipse

former_member199619
Participant
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member199619
Participant
0 Kudos

Thanks to all.

I am able to debug after changing the port numbers.

Shyam

jason_latko
Advisor
Advisor
0 Kudos

Shyam,

Please mark this thread as closed so others can find the solution.  Thanks!

Jason Latko - Senior Product Developer at SAP

Answers (3)

Answers (3)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

atif_bhatti
Participant
0 Kudos

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

  1. RunàDebug configuration à Remote Java Application

Port should be same as in Agentry under Java in our case it is 7100.

tahir_z
Contributor
0 Kudos

Hi Shyam,

Are eclipse and server in a same machine ?

Have you started your newly defined remote java connection ?

Regards,

Tahir