topical media & game development

talk show tell print

professional-javascript-14-DebugExample2.htm / htm

          <title>Debug Example</title>
          <script type="text/javascript">
                  function test_function() {
                      java.lang.System.out.println("Entering function.");
                      var iNumber1 = 5;
                      var iNumber2 = 10;
                      java.lang.System.out.println("Before calculation.");
                      var iResult = iNumber1 + iNumber2;
                      java.lang.System.out.println("After calculation.");
                      java.lang.System.out.println("Leaving function.");
          <p>This example writes some messages to the Java console. This will not work in Internet Explorer. Open the Java console to see the output.</p>

(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.