Missing variable in debugger frames

Please consider the following code :
<<
import java.io.BufferedReader;
import java.io.StringReader;
import java.io.IOException;

public class TestIDEA {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new StringReader("A\nB\nC\n"));
String line;
while ((line=br.readLine())!=null) {
System.out.println(line);
}
}
catch (IOException e) {}
}
}
>>

Put a breakpoint on the System.out line and launch the debugger. When the breakpoint is reached, have a look at the Frame and notice that the variable 'line' doesn't show. You can't even evaluate it or add it to watches.

Can anyone explain that ?

I've been using your product for weeks and i love it; thanx and congrats for that marvellous IDE !

3 comments
Comment actions Permalink

Hi,

I had this too. I think it is a bug, isn't it?

Best Regards
Carsten

0
Comment actions Permalink

I had a similar thing which I posted to the tracker:

http://www.intellij.net/tracker/idea/viewSCR?publicId=7557

They said it was a bug in JPDA. I guess you should post your case to
the tracker as well, since the explanation with the exception does not
match your case!

Michael

On Thu, 21 Nov 2002 17:24:01 +0000 (UTC), Carsten Manshusen
<cm@manshusen.de> wrote:

>Hi,
>
>I had this too. I think it is a bug, isn't it?
>
>Best Regards
>Carsten

0
Comment actions Permalink

This is a known issue that is reflected in these on Sun's bug parade:

bug 4448658 (looks exactly like this particular case)
bug 4349534

According to the bug states they are fixed in JDK 1.4.2.

--

Best regards,
Eugene Zhuravlev
JetBrains, Inc, http://www.intellij.com
"Develop with pleasure!"


"Sylvain" <sdeaux_pub@yahoo.fr> wrote in message
news:1764611.1037897515995.JavaMail.jrun@is.intellij.net...

Please consider the following code :
<<
import java.io.BufferedReader;
import java.io.StringReader;
import java.io.IOException;

>

public class TestIDEA {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new

StringReader("A\nB\nC\n"));

String line;
while ((line=br.readLine())!=null) {
System.out.println(line);
}
}
catch (IOException e) {}
}
}
>>

>

Put a breakpoint on the System.out line and launch the debugger. When the

breakpoint is reached, have a look at the Frame and notice that the variable
'line' doesn't show. You can't even evaluate it or add it to watches.
>

Can anyone explain that ?

>

I've been using your product for weeks and i love it; thanx and congrats

for that marvellous IDE !
>
>


0

Please sign in to leave a comment.