Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

debug print statements

Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

    Bookmark Topic Watch Topic
  • New Topic