Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java remote debug - can't step in
Java remote debug - can't step in [message #250493] Tue, 08 January 2008 00:52 Go to next message
Eclipse UserFriend
Originally posted by: george.foster.ieee.org

I am having problems using the remote debug capability. The debugger
connects just fine and Eclipse gives my the first executable line in the
debug perspective. I can step into methods in classes in the same JAR as
the starting file, but am unable to step into any classes that are in any
of the other JARs in the classpath. Instead of stepping in, they are
executed as if I chose step over.

Some background before going any further:

My java code is actually executed through Java Invocation interface from
C/C++ code. I start up using the following debug VM args:

-Xrunjdwp:transport=dt_socket,server=y,address=8787,suspend= y

The JAR files referenced using the -Djava.class.path= VM arg are the same
as the ones in the Source tab in the debug launch parameters in Eclipse,
although the class path is rather long (if that is important).

Another interesting symptom: when I am stopped in the debugger, and I try
to "Show In..." and then "Package Navigator", Eclipse cannot bring up the
code. Needless to say, any breakpoints I set are not hit either. I have
tried using Eclipse 3.2.2 and Europa (I get a message about removing
filters when I try the Show in using Europa, but it still can't find the
package).

Any ideas, whether my "stupidity" or something more subtle with the remote
debugger?

Thanks,

George
Re: Java remote debug - can't step in [message #250682 is a reply to message #250493] Tue, 15 January 2008 00:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: george.foster.ieee.org

Nudge back to page 1...
Re: Java remote debug - can't step in [message #250731 is a reply to message #250682] Mon, 21 January 2008 09:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richard256.gmx.de

> Nudge back to page 1...

Assume you found the problem. We are using Eclipse as a platform, and I have
several customers complaining about comparable problems, but its hard to
reproduce. Therefore I would be interested to know, what your problem was.

Thanks
Richard
Re: Java remote debug - is there a better forum for this Q? [message #250789 is a reply to message #250731] Tue, 22 January 2008 13:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: george.foster.ieee.org

I haven't heard from anyone on this yet. Is there a better forum to post
this?
Re: Java remote debug - can't step in [message #250805 is a reply to message #250731] Tue, 22 January 2008 23:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: george.foster.ieee.org

Richard,

We're still searching for the solution. In the meantime, we are going to
just JAR up all our code into a single JAR for now.
Re: Java remote debug - is there a better forum for this Q? [message #250833 is a reply to message #250789] Wed, 23 January 2008 08:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richard256.gmx.de

"George Foster" <george.foster@ieee.org> wrote in message
news:573077ec6b9c2bb2b64c4f111c1704d2$1@www.eclipse.org...
>I haven't heard from anyone on this yet. Is there a better forum to post
>this?
>

Afaik there is no better group for this. Maybe its worth to open a bug
report on this.

Regards
Richard
Re: Java remote debug - can't step in [message #251753 is a reply to message #250493] Sat, 01 March 2008 16:21 Go to previous message
Eclipse UserFriend
Originally posted by: thunderaxiom.gmail.com

George Foster skrev den 08-01-2008 01:52:
> I am having problems using the remote debug capability. The debugger
> connects just fine and Eclipse gives my the first executable line in the
> debug perspective. I can step into methods in classes in the same JAR as
> the starting file, but am unable to step into any classes that are in
> any of the other JARs in the classpath. Instead of stepping in, they are
> executed as if I chose step over.

I have earlier found this to be the problem if for some reason Eclipse
maps your source in which you put the breakpoint to another class than
the one found in the remote session or the breakpoint goes in an
incorrect position.

You may be able to get around the source mapping problem by placing a
method breakpoint instead of a source breakpoint. IIRC this can be done
by right clicking the method in the outline view (and perhaps in the
package explorer view).

If this doesn't help, can you create a minimal case showing the
behaviour and make it available to us?

--
Thorbjørn
Previous Topic:Full Workspace Rebuild on each Save
Next Topic:Program runs, but cannot export to JAR
Goto Forum:
  


Current Time: Sat Jul 27 18:25:41 GMT 2024

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

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

Back to the top