I am trying to debug an applet. Could someone please help me understand some basic debug practices. I have experience in server side java using JSPs, Java Beans and a servlet engine. However, I have not had much experience with the awt and applet sections of java. When I run a JSP through J-run or when I ran a standalone program from a command prompt, I can print to error and out logs. Does anyone know how I can create print statements in my applet for debugging purposes? However, I do not want to print debug statements directly to my applet.
If you do a normal System.out.println() ( just like a regular command-line program ) in an applet it will get sent to the Java Console for debugging purposes. Running in appletviewer just sends it to the console that appletviewer is running in, and there are different ways to open it in different browsers... in IE v.4.0 (what's installed on my NT box here at work ), it's View > Java Console. If it doesn't show up on that menu, you have to enable the Java Console from the Internet Options setup screen. I think checking one of the checkboxes under the Advanced tab will enable it if it's not enabled.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.