Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1355 How can I write debug messages to the Java Console?

irt.org | Knowledge Base | JavaScript | Misc | Q1355 [ previous next ]

Q1355 How can I write debug messages to the Java Console?

In Netscape only:

<script language="JavaScript"><!--
java.lang.System.out.println("hello");
//--></script>

So in a loop:

<script language="JavaScript"><!--
for (i=0;i<10;i++)
    java.lang.System.out.println(""+(i+1));
//--></script>

If you need Internet Explorer to do it, you will need to load an applet that writes passed values to java.lang.System.out - it should turn up in the file: windows\Java\Javalog.txt as detailed FAQ 4006 - How do I view the error output from my Java applets in Internet Explorer?


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.