my dog learned polymorphism *
The moose likes IDEs, Version Control and other tools and the fly likes IntelliJ remote debugging with websphere Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "IntelliJ remote debugging with websphere" Watch "IntelliJ remote debugging with websphere" New topic
Author

IntelliJ remote debugging with websphere

paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20735
    ∞

I'm not much of a debugging tool user. But some folks at work are curious about IntelliJ IDEA. Anybody done remote debugging with IJ? Are you able to examine variables and set breakpoints? Would it work with websphere?


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
I use remote debugging in IDEA and it works like any other debugger. You can set breakpoints, add watchs, examine variables, yada, yada, yada. I have used remote debugging against WebLogic, Tomcat, and Resin. It is basically just a feature of the JVM so it should work on any Application Server as long as you are allowed to pass options to the JVM.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
The options you need to pass are:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5555
Where address is the port of the socket your debugger will listen on. Once this is configured then it is trival to set up the debugger in IDEA.
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20735
    ∞

I guess the big question is: can I set breakpoints and stuff on EJB's running in websphere?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
It works for me in WebLogic. Of course, I have never tried it with Websphere so YMMV...
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20735
    ∞

IJ 4.0 just came out with a bunch of weblogic stuff. Are you saying you would be able to set breakpoints in EJB's with IJ and weblogic before IJ had the weblogic support?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by Paul Wheaton:
IJ 4.0 just came out with a bunch of weblogic stuff. Are you saying you would be able to set breakpoints in EJB's with IJ and weblogic before IJ had the weblogic support?

Yup. I have been using the remote debugging support of IDEA 3.0 to debug EJBs in WebLogic for the past year or so. In fact, I still use it with 4.0 because it works and I am too lazy to configure the WebLogic support. :roll:
[ February 24, 2004: Message edited by: Chris Mathews ]
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20735
    ∞

Cool beans!
One last question: are you able to set a breakpoint in an EJB and look at parameter values and variable values?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Originally posted by Paul Wheaton:
Cool beans!
One last question: are you able to set a breakpoint in an EJB and look at parameter values and variable values?

Yup! Again, I can't attest to how well remote debugging will work with Websphere...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IntelliJ remote debugging with websphere