Java remote debug - can't step in [message #250493] |
Tue, 08 January 2008 00:52 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 #250731 is a reply to message #250682] |
Mon, 21 January 2008 09:02 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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 - can't step in [message #251753 is a reply to message #250493] |
Sat, 01 March 2008 16:21 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04228 seconds