Debugging classes in WebSphere?

Does anyone know how to debug classes running inside of WebSphere? I remember being able to do run the WebLogic server from within Symantec Cafe and being able to add breakpoints to my classes. Can you do the same thing with WebSphere and IntelliJ? TIA.


-dmg

1 comment

No problem with Websphere 4 Single Server. Just create a run configuration like this:

Main class: com.ibm.ws.bootstrap.WSLauncher

VM: -classpath "C:\WebSphere\AppServer\lib\bootstrap.jar;C:\WebSphere\AppServer\properties;C:\WebSphere\AppServer\lib\j2ee.jar" -Xms96m -Xmx256m -Djava.library.path=C:/WebSphere/AppServer/bin;C:/WebSphere/AppServer/java/bin;C:/WebSphere/AppServer/java/jre/bin -Dserver.root=C:/WebSphere/AppServer -Dws.ext.dirs=C:/WebSphere/AppServer/java/lib;C:/WebSphere/AppServer/classes;C:/WebSphere/AppServer/lib;C:/WebSphere/AppServer/lib/ext;C:/WebSphere/AppServer/web/help;C:/WebSphere/AppServer/properties; -Dcom.ibm.CORBA.ConfigURL=file:/WebSphere/AppServer/properties/sas.server.props -Dws.server.config=C:/WebSphere/AppServer/config/server-cfg.xml -Dcom.ibm.itp.location=C:/WebSphere/AppServer/bin

Params: com.ibm.ws.runtime.StandardServer -configFile C:/WebSphere/AppServer/config/server-cfg.xml -nodeName your_machine -serverName "Default Server"

Dir: C:\WebSphere\AppServer\bin

Of course, you have to use the IBM JDK delivered with Websphere.

0

Please sign in to leave a comment.