From: SourceForge.net <no...@so...> - 2006-09-19 14:58:27
|
Bugs item #1561534, was opened at 2006-09-19 07:58 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1561534&group_id=44253 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Debugger Group: 2: Annoying Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Debug Stepping Over not working with keyboard input Initial Comment: Neither the May nor August DrJavas will Step Over a statement that reads input from the keyboard - they go away for a while, then print "Stepping...\n>" in the interactions pane. The "input box" never shows up. If I type a line of something into the interactions pane, it's not echoed until I've hit return once. After that it's echoed, but nothing happens. This happened on a fairly clean 10.4.7 PowerBook and on a Mac running OS X for both local and AFP-mounted source files. It does NOT occur when I use the January stable release of DrJava on my PowerBook. I've attached a screen snapshot of DrJava after this has occurred. Top does not indicate a significant amount of CPU going to process at this point, much less DrJava or a java vm. If I type into the interactions pane, nothing is echoed until I hit return, at which point typing is echoed, but code is not interpreted. A program to demonstrate the above behaviour with the debugger and stepping over input import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Tiny { public static void main( String[] args ) throws IOException { Tiny program = new Tiny(); program.run(); } void run() throws IOException { BufferedReader inp; String nextLine; inp = new BufferedReader( new InputStreamReader(System.in) ); while( true ) { nextLine = inp.readLine(); if( nextLine.equals("quit") ) break; System.out.println(nextLine); } inp.close(); System.out.println( "Goodbye..." ); } } *************************************** Carrie Howells Instructional Support Coordinator CS134 University of Waterloo cah...@cs... *************************************** ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=438935&aid=1561534&group_id=44253 |