Hi Bill, This is JPDA problem. Strangely, if the local variable was not initialized, it is not returned in the list of visible variables while the execution is inside the loop. But you can inspect the variable when the execution goes outside the loop. To workaround this, the variable should be declared with the initializer. String line = null; If declared like this, everything works ok.
-- Best regards, Eugene Zhuravlev JetBrains, Inc, http://www.intellij.com "Develop with pleasure!" "Bill Uetrecht" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Here is an example code snippet: > > BufferedReader reader = > new BufferedReader( new FileReader( sourceFile ) ); > String line; > while( ( line = reader.readLine() ) != null ) > { > buffer.append( line ); > } > reader.close(); > > When I execute this in the debugger, I cannot display the contents of the > "line" variable. It seems as if variable assignments within conditional > clauses aren't recognized by the debugger. I don't know if this is a JDK > 1.4 issue or a bug in Idea. > > Bill U. _______________________________________________ Eap-bugs mailing list [EMAIL PROTECTED] http://lists.jetbrains.com/mailman/listinfo/eap-bugs
