Applets run in the virtual machine of the IDE's default web browser. The IDE itself uses a different virtual machine and therefore applets are not included in a web application's debug session. Therefore, you should debug the applet within the Java project in which it is created.

For details, see the NetBeans IDE 4.1 Tutorial for Applets.

Source: NetBeans User FAQ