This site requires JavaScript, please enable it in your browser!
Greenfoot back
keizerbob
keizerbob wrote ...

2016/2/17

"Next Error" grayed out but not running. Console output?

keizerbob keizerbob

2016/2/17

#
Beginner question here: I compile a modified source file and previously initialized World does not start up as before. However, "Next Error" button in editor is grayed out and there is no red underlining that I can see. I have opened the debugger and see reasonable settings for some variables. I'm not asking for my code to be analyzed but what is a reasonable next step? Is there a Greenfoot console that I can send messages too? Should I look into debugger operation? Hints appreciated...
danpost danpost

2016/2/17

#
You could (1) double check your modifications -- make sure they are logically sound; (2) post the World subclass code here for help; and/or (3) try sending output to the terminal with the 'System.out.println(String text)' method. Sometimes it is enough to just know whether some code is executing by inserting a line similar to this:
System.out.println("Line 14");
keizerbob keizerbob

2016/2/17

#
danpost: Thanks again for the info. I hadn't tried .println() 'cause I didn't know about the Greenfoot Terminal Window pop-up. Very nice and critical to me fixing the display problem that showed up next.
You need to login to post a reply.