[4007] in java-interest

home help back first fref pref prev next nref lref last post

No subject found in mail header

daemon@ATHENA.MIT.EDU (Jonathan_Mark_Smith@CCMAIL.PRUSEC.)
Thu Dec 7 10:35:31 1995

From: Jonathan_Mark_Smith@CCMAIL.PRUSEC.COM
Date: Thu, 07 Dec 95 08:17:05 EST
To: java-interest@java.sun.com

While I play with applets, I like to place output strings throughout the 
code, just to make sure the applet reaches certain critical points. 
 However, I'm never sure what the applet does as none of the debugging 
strings I use in the program ever show up (or rarely show up) -- I think 
it's a combination of threading and repainting. So I started using sounds at 
certain places in the program to see if execution reached that point. Even 
though this works ok, I'd much rather see string messages displayed in a 
window. What I should do before playing around with too many more applets is 
find a way of displaying output on the screen while the program runs, no 
matter what, so I can easily trace the program execution. Otherwise I never 
know if an applet ends or aborts. I tried using showStatus(), but the status 
line information rarely stays for long, if I see it flash by at all.

I'm writing Beta applets and using Netscape to view them, but I don't think 
any of the System.out (or whatever the commands are for standard output) 
work at all. When I try to put strings into the repaint method, I have 
strings repainted over top of strings fast enough that this method is rather 
useless. I thought that I might be able to write information to a file, but 
is there an easier method, like the debugger -- I still haven't got that 
thing to run yet (I haven't downloaded the new JDK 2.0 w/interactive 
debugger yet either). I'm looking for a clean, slick, and rather painless 
way of doing this. Any suggestions?
                                   John
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post