Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><a href="http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/debugger.html" rel="noreferrer">This article is a bit old</a> but is still relevant (including a section entitled "How to Debug Applets in Java Plug-in").</p> <p>Edit: perhaps a better way to get stacktraces is to use the <a href="http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/console.html" rel="noreferrer">Java plugin console</a>. If you hit "t" in that window, you'll see the following:</p> <blockquote> <p>Prints out all the existing thread groups. The first group shown is Group main. ac stands for active count; it is the total number of active threads in a thread group and its child thread groups. agc stands for active group count; it is the number of active child thread groups of a thread group. pri stands for priority; it is the priority of a thread group. Following Group main, other thread groups will be shown as Group , where name is the URL associated with an applet. Individual listings of threads will show the thread name, the thread priority, alive if the thread is alive or destroyed if the thread is in the process of being destroyed, and daemon if the thread is a daemon thread.</p> </blockquote> <p>The other command that I've used most often from that console is the trace level from 0-5:</p> <blockquote> <p>This sets the trace-level options as described in the next section, <a href="http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/tracing_logging.html#tracing" rel="noreferrer">Tracing and Logging.</a></p> </blockquote> <p>From that page, you'll see that the levels look like this:</p> <blockquote> <ul> <li>0 — off</li> <li>1 — basic</li> <li>2 — network, cache, and basic</li> <li>3 — security, network and basic</li> <li>4 — extension, security, network and basic</li> <li>5 — LiveConnect, extension, security, network, temp, and basic</li> </ul> </blockquote> <p>These tools can all be fairly useful as you're trying to unravel what in the world has gotten into the head of your applets. I know that they've worked for me.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload