
Friday September 01, 2006
UPDATED: View Classes and Classloader information - JPDA (Java) Debugger Call Stack View Enhancements Module
I have updated the JPDA (Java) Debugger Call Stack View Module on my NetBeans 5.0 update center described (here).
What is new?
The following new popup actions is supported:
- Show Classes... Shows the table of all classes loaded in the debugee. Each row in Classes table shows Class name, Package name and the value returned by the toString() method of class's ClassLoader and Initiating ClassLoader (See the revised Java Virtual Machine Specification section 5.3 Creation and Loading for more information on the initiating classloader). Each column is sortable.To invoke the action right click on any call stack frame in the Calls Stack view of the debugger.
Notice how the ClassLoader's toString()value is showing the module code base name e.g. org.openide.loaders. Also notice how the loading of org.openide.loaders.DataFolder class was initiated by org.netbeans.web.core.syntax module's ClassLoader, but the class was actually loaded by the org.openide.loaders module's ClassLoader. This can be useful for debugging applications such as App Servers, IDE Frameworks (e.g. Netbeans itself), that employ a complex multi-ClassLoader architecture. This view helps you determine which ClassLoader initiated and which ClassLoader loaded the class.
The following figure shows which Netbeans modules ClassLoader has loaded certain classes.

Sources
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
Posted by sandipchitale
( Sep 01 2006, 01:43:10 PM PDT ) Permalink