Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IntelliJ remote debugging with websphere

 
paul wheaton
Trailboss
Pie
Posts: 21346
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 21346
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess the big question is: can I set breakpoints and stuff on EJB's running in websphere?
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It works for me in WebLogic. Of course, I have never tried it with Websphere so YMMV...
 
paul wheaton
Trailboss
Pie
Posts: 21346
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 21346
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic