This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Not able to do debug in jboss-4.2.3.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Not able to do debug in jboss-4.2.3.GA" Watch "Not able to do debug in jboss-4.2.3.GA" New topic
Author

Not able to do debug in jboss-4.2.3.GA

Durga Krishna
Greenhorn

Joined: Apr 05, 2007
Posts: 28
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

Joined: May 14, 2008
Posts: 5836
    
    7

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?


JBoss In Action
Durga Krishna
Greenhorn

Joined: Apr 05, 2007
Posts: 28
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

Joined: Jul 20, 2005
Posts: 10146
    
165

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?

[My Blog] [JavaRanch Journal]
Durga Krishna
Greenhorn

Joined: Apr 05, 2007
Posts: 28
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

Joined: May 03, 2008
Posts: 52
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.


SCJP 5.0 - Passed
 
GeeCON Prague 2014
 
subject: Not able to do debug in jboss-4.2.3.GA