|
org.netbeans.api.debugger.jpda/2 2.19.1 | |||||||||
| 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:
Annotations are added for easy registration on module layers.
*Provider.Registration annotations are introduced to register
implementations of appropriate providers.
ReadWriteLock is introduced to synchronize the access to JPDAThread. ReadLock of that read/write pair is publicly available through the new method JPDAThread.getReadAccessLock(). Clients can use this lock to assure that the thread is not resumed in the mean time.
Added methods:
JPDAThread.getReadAccessLock(),
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.
|
|
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.19.1 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||