Step-in in Europa [message #249170] |
Thu, 01 November 2007 12:06  |
Eclipse User |
|
|
|
I had some issues with the Java debugging, specifically the step in, which
was different in Eclipse 3.2 (or, I am missing something)
---------------------------------
1. I can't manage to step in some JDK methods, like:
String str = "";
if (new java.util.Random().nextBoolean(())
str += "b";
I can't step inside the nextBoolean(), ando also I can't the StringBuilder
operations that i was expecting to happen for the string concatenation
(obviously when the specific codepath is taken).
I have no filters set for the step-in in preferences, and even if I set
the filter only for java.lang.ClassLoader, the same thing happens.
---------------------------------
2. In Eclipse 3.2, when I stepped inside methods, happened something like
this:
1. ...
2. someMethod();
3. someOtherMethod();
4. ...
5. void someMethod() {
6. someOperation();
7. }
supposing I am in (2); I click F5, and I go to (4).
now, if I don't click F5 another time, I return back to (3)!
this is quite annoying.
---------------------------------
Am I missing something? Are these some defaults which I can change?
My system is Windows XP/Eclipse Europa.
Thanks!
Saverio M.
|
|
|
Errata [message #249175 is a reply to message #249170] |
Thu, 01 November 2007 12:20   |
Eclipse User |
|
|
|
Originally posted by: 1.2.3
I made a mistake in writing:
Saverio M. wrote:
> ---------------------------------
>
> 2. In Eclipse 3.2, when I stepped inside methods, happened something
> like this:
>
> 1. ...
> 2. someMethod();
> 3. someOtherMethod();
> 4. ...
>
>
> 5. void someMethod() {
> 6. someOperation();
> 7. }
>
> supposing I am in (2); I click F5, and I go to (4).
> now, if I don't click F5 another time, I return back to (3)!
>
> this is quite annoying.
>
> ---------------------------------
this is happening in Europa.
the order is: (2) -> F5, (5) -> F6, (3).
I was expecting instead:
(2) -> F5, (5) -> F6, (6).
Thanks,
Saverio M.
|
|
|
|
|
Re: Step-in in Europa [message #249308 is a reply to message #249278] |
Mon, 05 November 2007 19:31   |
Eclipse User |
|
|
|
Saverio M. wrote:
> Walter Harley wrote:
>> "Saverio M." <saverio.pub@inbox.com> wrote in message
>> news:561fa15ac922f8d651ef2d4ab9bf9f9d$1@www.eclipse.org...
>>> I had some issues with the Java debugging, specifically the step in,
>>> which was different in Eclipse 3.2 (or, I am missing something)
>>>
>>> ---------------------------------
>>>
>>> 1. I can't manage to step in some JDK methods, like:
>>>
>>> String str = "";
>>>
>>> if (new java.util.Random().nextBoolean(())
>>> str += "b";
>>> I can't step inside the nextBoolean(), ando also I can't the
>>> StringBuilder operations that i was expecting to happen for the
>>> string concatenation (obviously when the specific codepath is taken).
>>
>>
>> Maybe you need to link to the source code of the JRE again?
> The source code is linked (I can open the Random class with F3); even if
> it wasn't, I should have received the window "source code not found".
>
> Thanks, anyway!
> Saverio
Hi Saverio. In order to debug into the Java system classes, you need to
be using the JRE that ships as part of the JDK. On my Windows system,
its in "C:\Program Files\Java\jdk1.6.0\jre". This version of the JRE is
compiled with debug symbols, which the standard JRE is not. It is
possible to link the Java source code so it is visible with F3 but still
not be able to debug into the Java system classes. Hope this helps. Mark
|
|
|
Re: Step-in in Europa [message #249325 is a reply to message #249308] |
Tue, 06 November 2007 06:48  |
Eclipse User |
|
|
|
Originally posted by: 1.2.3
>>>> 1. I can't manage to step in some JDK methods, like:
>>>>
>>>> String str = "";
>>>>
>>>> if (new java.util.Random().nextBoolean(())
>>>> str += "b";
> Hi Saverio. In order to debug into the Java system classes, you need to
> be using the JRE that ships as part of the JDK. On my Windows system,
It worked! Thank you very much.
Saverio
|
|
|
Powered by
FUDForum. Page generated in 0.04044 seconds