How do you debug Java Applets?

后端 未结 7 1766
感动是毒
感动是毒 2020-11-29 23:59

Currently, the only information I have is a one-line error message in the browser\'s status-bar.

Do you know how I could get a stack-trace for example ?

相关标签:
7条回答
  • 2020-11-30 00:28

    Uncaught exceptions are sent to the console. You can also use System.out to write your own messages to the console. To view the results you'll need to open the console by right clicking the Java icon in the systray and opening the console (note this is different for Microsoft's VM).

    To debug applets properly, you can setup Eclipse to debug applets. Right click the applet source file and click Debug as Applet. (If you have parameters for the applet you'll need to set this up.) Then you can step through the applet code as you would debug any other Java code.

    0 讨论(0)
提交回复
热议问题