[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Debugging JBoss with Eclipse question

Darin Swanson wrote:
Is the JAR etc that contains org.jboss.system.server.ServerImpl on the
source lookup path as specified on the Source tab of your Java application
launch configuration?

Thanks Darin,

Got it working. I converted from trying to locally debug within Eclipse to remote debugging and it worked right away. I added all the JBoss JARs to the source tab of the Remote Java Application (remote debug) dialog, and attached my single ZIP file containing all the sources. Then I followed the instructions in the forum posting by Stefan_Kuehn.

http://www.jboss.org/forums/thread.jsp?forum=141&thread=28214&message=3764647&q=debug+jpda#3764647

...and modified them by setting the java command's "suspend" option to "y", so that JBoss stops before the first instruction. Then I was able to set a breakpoint in org.Main.main() to debug JBoss starting from its initialization.

Rick

Darins

"Rick Horowitz" <rickhoro@xxxxxxxxxxxxx> wrote in message
news:b29man$272$1@xxxxxxxxxxxxxxxx


My Problem:
============
When I launch the application in the debugger with a breakpoint in
org.jboss.Main.main(), Eclipse displays the source file and I can debug
normally, single-stepping, etc. I can single-step up to the method:
org.jboss.Main.boot(), at the line, "server.init(props)".

When I step into server.init() in the debugger, the source file for
org.jboss.system.server.ServerImpl is not found by the debugger, even
though I can open that file in the Java perspective or the Plugin
Perspective and view/edit the source.

Question:
=========

Why is the org.jboss.system.server.ServerImpl source file not found by
the Eclipse debugger?

Thanks for any help,

Rick