WebSphere
In WebSphere’s console, I go to Application Servers > my-server-to-debug > Java and Process Management > Process Definition > Java Virtual Machine. Near the bottom of the page, I check Debug Mode and the values I am using in Debug arguments are:
-Djava.compiler=NONE -Xdebug -Xnoagent
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777
After applying the changes, I restart WebSphere.
Eclipse
In the Debug Dialog, I create a new configuration under the category Remote Java Application. I specify the project containing the source code of my deployed application, localhost (my WebSphere is running locally) and the port 7777.
Now I am ready to debug. I add some breakpoints, launch the debug configuration and run my deploy application.
Hope this helps you.
Until next…
In the Debug Dialog, I create a new configuration under the category Remote Java Application. I specify the project containing the source code of my deployed application, localhost (my WebSphere is running locally) and the port 7777.
Now I am ready to debug. I add some breakpoints, launch the debug configuration and run my deploy application.
Hope this helps you.
Until next…
No comments:
Post a Comment