Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Not able to do debug in jboss-4.2.3.GA

 
Durga Krishna
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

Earlier I used jboss-4.0.4.GA for my application. And for remote debugging I used the below commmand in run.bat file.


It went fine.I am able to debug.

Now I upgraded my server to jboss-4.2.3.GA.And if I use the same cammand for remote debugging,it's not working.
I am using jdk1.5.0_15 and JBossIDE for Eclipse Version: 2.0.0.

Please let me know how can I do debug in jboss-4.2.3.GA.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If should work in the same way (debugging is a capability of the JVM, the version of JBoss AS does not matter).

When you tried to do your debugging, what problems did you run into, or what are your symptoms?
 
Durga Krishna
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Peter,

Generally when I do debug, I will able to see my eclipse gets activated and if I have a break point in my code, the control comes to that point and shows green line. After that I will able to do debug line by line manually by pressing F6 key.

But now, in my case, all this is not happening. My eclipse is not getting activated,control not waiting at the break point.

Please suggest me a solution.

Thanks in Advance.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Durga Krishna wrote:

But now, in my case, all this is not happening. My eclipse is not getting activated,control not waiting at the break point.



Eclipse wont automatically get "activated" when the server starts in debug mode. You will have to launch Eclipse in debug mode when the server starts so that it can connect to the JBoss server. Have you done that?
 
Durga Krishna
Greenhorn
Posts: 28
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jaikiran,

I know I have to launch eclipse. I did that.
I mentioned port as 8787 in eclipse debug option.I choose the project.
I start debug.My eclipse perspective is changing to debug mode.
But it is not coming to my break point.
 
Mustafa Musaji
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%

I think you need to change suspend=n to suspend=y. This stops JBoss from starting up (I think) until you've launched your eclipse debug.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic