I am trying to debug a local code ( which is on my laptop) using eclipse, which I am trying to connect to the remotely hosted WAS( WebSphere Application server) and remotely hosted database.
Asked
Active
Viewed 5.0k times
28
-
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r1mx/index.jsp?topic=/com.ibm.wbit.612.help.debug.doc/topics/tremote.html – Kevin Panko Nov 08 '13 at 22:05
1 Answers
60
To remotely connect to WAS, first, from the WebSphere Integrated Solutions Console:
- Navigate to the application server's Debugging Service:
- Servers > Server Types > WebSphere application servers > [serverName] > Debugging Service
- Check the "Enable service at server startup" checkbox
- Add/modify the "JVM debug port" if necessary (the port must not already be in use on the server)
- Add/modify the "JVM debug arguments" if necessary (this may already appear by default):
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777
- Apply the changes, Save the new configuration, and Restart the application server
Then, from the Eclipse IDE:
- Open the "Debug" dialog (e.g. Run > Debug Configurations...)
- Right-click "Remote Java Application" and select "New"
- Configure the Remote Java Application:
- Name the debug configuration
- Browse to select the project to debug (optional)
- Use the "Standard (Socket Attach)" Connection Type
- Specify the hostname of your WAS server
- Specify the port number that was set in the WAS debug options
- Click Apply
- Click Debug
(These instructions are for WAS 7.0, but should be similar for other versions.)

shelley
- 7,206
- 4
- 36
- 63
-
1in my case I´m having problems to access a remote server (probably because of console username and password). Do you have some sugestion? – Maciel Escudero Bombonato Jan 09 '17 at 16:47
-
1
-
1This is working great in WAS 8.5.5 too. Thanks a lot for the detailed steps!! – Praveen Feb 27 '18 at 09:06
-
Did anyone try this in WebSphere 9.0.0.x environment, I tried and it's preventing the server start up? – cnu Apr 20 '20 at 17:39