Shop OBEX P1 Docs P2 Docs Learn Events
IDE Message window — Parallax Forums

IDE Message window

WiltsWilts Posts: 8
edited 2004-10-14 20:42 in General Discussion
In the software I am developing, I have liberally pasted the code with system.out.println statements to make it easy to see what is going on. Trouble is, when I run the code in the debug mode, I find that the formating goes wrong. Instead of listing all my messages, I seem to experience a "clear screen" effect whereby the messages arising from a instance of a method seem to always start again from the top of the message window, overwriting what was there previously. Is this normal and is there a way to make the message window act like a continous scrolling log?

Thanks

Paul

Comments

  • JavalinJavalin Posts: 892
    edited 2004-10-01 13:12
    Hi,

    Yeah - by default it will act as a scrolling screen. Sounds like you have a spurious HOME or CLS command being sent. These are as follows:

    final static char CLS = '\u0010';
    final static char HOME = 0x01;

    James
  • WiltsWilts Posts: 8
    edited 2004-10-07 14:21
    Thanks for the reply. I have done a quick check of the code and haven't found any HOME or CLS commands. The closest I have found is where I have used
    System.out.println("");
    to space out the displayed debug information. Could this have the same effect?

    Paul
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-10-07 16:47
    Hi,
    Get serialsniffer from here:
    http://www.flache.de/Download/Shareware/SerialSnifferE/
    The non-registered version allows you to capture 1024 bytes
    at any baudrate. Set the baud to 28800 to capture output
    from the JIDE port. Check received bytes against transmitted
    bytes from System.out.print. That way you can find out
    if there are false characters.
    Remember the JIDE port sends out metadata bytes ($05,$7F)

    regards peter
    ·
  • WiltsWilts Posts: 8
    edited 2004-10-13 19:54
    I got to the bottom of the problem in the end - the System.out.println(""); statements were causing the clear screen effect. Replacing them by System.out.println(" "); cured the problem.

    Thanks again for the help.

    Paul
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2004-10-13 20:20
    That's strange.

    An empty string is supposed not to

    print anything as it holds no characters.



    regards peter
  • WiltsWilts Posts: 8
    edited 2004-10-14 20:42
    I agree - very strange but true

    Paul
Sign In or Register to comment.