Hitesh Bajaj
Hitesh Bajaj

Reputation: 145

How to start WAS liberty profile server in remote debug mode.

I need to start my liberty profile in remote debug mode. Want to know if that is possible? If yes need pointers on how to achieve that.

Upvotes: 3

Views: 7087

Answers (2)

Rajiv Nathan
Rajiv Nathan

Reputation: 181

You can use the WebSphere Developer Tools for Eclipse to debug applications on remote servers. Create the remote server and select the "Enable the server to start remotely" option in the server wizard so that you can then restart the remote server in debug mode.

For instructions on how to set up a remote server in WDT see http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wlp.nd.multiplatform.doc/ae/t_creating_remote_server.html

Here's a doc about debugging apps on a server as well http://www.ibm.com/support/knowledgecenter/SSAW57_8.5.5/com.ibm.websphere.wdt.doc/topics/tdebug.htm?lang=en

Upvotes: 0

Azquelt
Azquelt

Reputation: 1495

server debug [servername]

This will start the server in the foreground in debug mode. You can then connect a debugger to the debug port (default: 7777). There're more details on the options for the server command in the Knowledge Centre.

Alternatively, if you're using WebSphere Developer Tools for Eclipse, you can right-click on the server in the servers view and select Debug which will start the server in debug mode and attach the eclipse debugger.

Upvotes: 7

Related Questions