|
org.netbeans.api.debugger.jpda/2 2.16 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
See:
Description
| JPDA Debugger API | |
|---|---|
| org.netbeans.api.debugger.jpda | JPDA Debugger APIs provide representation of JDI functionality. |
| org.netbeans.api.debugger.jpda.event | |
| org.netbeans.spi.debugger.jpda | JPDA Debugger SPIs defines support for Smart Stepping, Variables Filtering and filtering of all Debugger Views. |
The JPDA Debugger API module defines common API for Java debuggers.
List of APIs:
This API change is necessary for the redesign of the debugger UI and it's behavior with respect to threads.
Added classes:
org.netbeans.api.debugger.jpda.DeadlockDetector,
org.netbeans.api.debugger.jpda.MonitorInfo,
org.netbeans.api.debugger.jpda.ThreadsCollector
Added methods:
CallStackFrame.getFrameDepth(),
CallStackFrame.getOwnedMonitors(),
JPDADebugger.getThreadsCollector(),
JPDADebugger.getDeadlockDetector(),
JPDAThread.getCurrentBreakpoint(),
JPDAThread.getContendedMonitorAndOwner(),
JPDAThread.getOwnedMonitorsAndFrames(),
EditorContext.annotate() with thread argument,
AttachingDICookie.getProcessID()
Added fields:
JPDADebugger.PROP_THREAD_STARTED,
JPDADebugger.PROP_THREAD_DIED,
JPDADebugger.PROP_THREAD_GROUP_ADDED,
JPDAThread.PROP_SUSPENDED,
JPDAThread.PROP_BREAKPOINT,
EditorContext.OTHER_THREAD_ANNOTATION_TYPE
In order to implement annotation of method breakpoints in Editor, we need to be able to locate individual methods in Editor, based on their names and signature. Also we need annotation types for fields and methods.
Added methods:
EditorContext.getMethodLineNumber(),
EditorContext.getCurrentMethodDeclaration(),
Added fields:
EditorContext.FIELD_BREAKPOINT_ANNOTATION_TYPE,
EditorContext.DISABLED_FIELD_BREAKPOINT_ANNOTATION_TYPE,
EditorContext.METHOD_BREAKPOINT_ANNOTATION_TYPE
EditorContext.DISABLED_METHOD_BREAKPOINT_ANNOTATION_TYPE
To catch-up with JDI capabilities and be able to implement new enhancements,
we need to add support for new breakpoint properties into the debugger JPDA API.
These are mainly class and thread filters and hit counts.
Added methods:
ExceptionBreakpoint.getClassFilters(),
ExceptionBreakpoint.setClassFilters(),
ExceptionBreakpoint.getClassExclusionFilters(),
ExceptionBreakpoint.setClassExclusionFilters(),
FieldBreakpoint.getInstanceFilters(),
FieldBreakpoint.setInstanceFilters(),
FieldBreakpoint.getThreadFilters(),
FieldBreakpoint.setThreadFilters(),
JPDABreakpoint.getHitCountFilter(),
JPDABreakpoint.getHitCountFilteringStyle(),
JPDABreakpoint.setHitCountFilter(),
LineBreakpoint.getInstanceFilters(),
LineBreakpoint.setInstanceFilters(),
LineBreakpoint.getThreadFilters(),
LineBreakpoint.setThreadFilters(),
MethodBreakpoint.getMethodSignature(),
MethodBreakpoint.setMethodSignature(),
MethodBreakpoint.getInstanceFilters(),
MethodBreakpoint.setInstanceFilters(),
MethodBreakpoint.getThreadFilters(),
MethodBreakpoint.setThreadFilters().
Added fields:
ExceptionBreakpoint.PROP_CLASS_FILTERS,
ExceptionBreakpoint.PROP_CLASS_EXCLUSION_FILTERS,
FieldBreakpoint.PROP_INSTANCE_FILTERS,
FieldBreakpoint.PROP_THREAD_FILTERS,
JPDABreakpoint.PROP_HIT_COUNT_FILTER,
JPDABreakpoint.HIT_COUNT_FILTERING_STYLE,
LineBreakpoint.PROP_INSTANCE_FILTERS,
LineBreakpoint.PROP_THREAD_FILTERS,
MethodBreakpoint.PROP_METHOD_SIGNATURE,
MethodBreakpoint.PROP_INSTANCE_FILTERS,
MethodBreakpoint.PROP_THREAD_FILTERS.
In order to be able to provide heap walking functionality, we need methods for retrieval of class instances and back references.
Added methods:
Field.getDeclaringClass(),
JPDAClassType.getClassLoader(),
JPDAClassType.getSuperClass(),
JPDAClassType.getInstanceCount(),
JPDAClassType.getInstances(),
JPDADebugger.canGetInstanceInfo(),
JPDADebugger.getAllClasses(),
JPDADebugger.getClassesByName(),
JPDADebugger.getInstanceCounts(),
ObjectVariable.getReferringObjects(),
ObjectVariable.getClassType(),
ObjectVariable.getUniqueID().
Added classes:
VariableType,
JPDAArrayType.
An access to method arguments in source code is necessary for cases where we do not have full debug information.
Added methods:
EditorContext.getArguments()
Added classes:
EditorContext.MethodArgument
|
|
The sources for the module are in the NetBeans Mercurial repositories.
Read more about the implementation in the answers to architecture questions.
|
org.netbeans.api.debugger.jpda/2 2.16 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||