Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Remote Debugging Problem(Remote Debugger not find source code in project)
Remote Debugging Problem [message #1743153] Mon, 12 September 2016 17:52 Go to next message
Mike Tarullo is currently offline Mike TarulloFriend
Messages: 14
Registered: April 2010
Junior Member
I am trying to debug the Apache ActiveMQ message broker using remote debugging in Eclipse.

I have activated the debugger on the message broker side by commenting the specified line in the ActiveMQ startup script.

I have downloaded the source code for the version of ActiveMQ I am using and added it to an Eclipse project.

I have configured a remote debugging session in Eclipse.

I have set a breakpoint in the ActiveMQ Connection source code at the start() function, which I am certain is executed when I run my JMS client.

I start the message broker, start the remote debugger session in Eclipse and start my JMS client app.

I can see that my app makes a connection but the debug session nevers shows my breakpoint or the source code. I have attached a screen shot of what the debugger looks like at the point where I would expect to see the source code stopped at my break point.

Can you tell me what is wrong?

Thank you.
Re: Remote Debugging Problem [message #1743168 is a reply to message #1743153] Mon, 12 September 2016 20:41 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
Possibly the line number doesn't match the currently running version of the software?
You may want to try a method entry breakpoint instead, which is independent of line numbers.
Re: Remote Debugging Problem [message #1743226 is a reply to message #1743168] Tue, 13 September 2016 12:06 Go to previous messageGo to next message
Mike Tarullo is currently offline Mike TarulloFriend
Messages: 14
Registered: April 2010
Junior Member
Thank you Stephan!

I think it is more than just that.

In fact, for the source code I downloaded from the Apache web site and the version of Apache ActiveMQ I am attempting to debug, I did have this working somewhat in the past. I created a new project and re-imported the source code to try to correct some of the earlier problems I was having and that made things worse. As you can see from the screen image I uploaded, the tab in the IDE that should contain the source code is totally blank. In fact it does not even contain the usual message I have seen in the past when Eclipse can't find the source code.
Re: Remote Debugging Problem [message #1743238 is a reply to message #1743226] Tue, 13 September 2016 14:00 Go to previous messageGo to next message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
The screenshot doesn't prove much, because we don't know why it should show any source code in the current state (i.e., no breakpoint has fired).

Have you tried the method entry breakpoint I mentioned?
Re: Remote Debugging Problem [message #1743262 is a reply to message #1743238] Tue, 13 September 2016 16:21 Go to previous messageGo to next message
Mike Tarullo is currently offline Mike TarulloFriend
Messages: 14
Registered: April 2010
Junior Member
No Stephan I have not done that yet because I'm not even sure at this point that the method I chose is a good place to start. I selected it because It appeared to me from looking at the ActiveMQ source code that it would be the method that gets called when I connect to the message broker from my client app.

So trying your approach, while I understand it's value, won't do anything if I'm that far off target trying to find a place to gain entry.

I have posted something on the ActiveMQ mailing list. From the first response I received it looks like I'm right about having placed the breakpoint in the wrong place, now I just need someone to tell me why the place I chose is not the right place, and more importantly, what is the correct place.
Re: Remote Debugging Problem [message #1743271 is a reply to message #1743262] Tue, 13 September 2016 17:00 Go to previous message
Stephan Herrmann is currently offline Stephan HerrmannFriend
Messages: 1853
Registered: July 2009
Senior Member
So your questions are about the inner workings of ActiveMQ, not about JDT, right?
Previous Topic:Miglayout and units of dimension
Next Topic:Maven Dependencies not Resolving for Project
Goto Forum:
  


Current Time: Sun Oct 13 16:52:03 GMT 2024

Powered by FUDForum. Page generated in 0.05320 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top