|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openide.debugger.Debugger
Provides a minimal interface between the IDE and a debugger. It permits control of the state of the debugger and creation of breakpoints and watches.
Field Summary | |
static int |
ACTION_BREAKPOINT_HIT
|
static int |
ACTION_STEP_OUT
|
static int |
ACTION_TRACE_INTO
|
static int |
ACTION_TRACE_OVER
|
static int |
DEBUGGER_NOT_RUNNING
Debugger state when the debugger is not running at all. |
static int |
DEBUGGER_RUNNING
Debugger state when the debugger is running user code. |
static int |
DEBUGGER_STARTING
Debugger state when the debugger is starting to run. |
static int |
DEBUGGER_STOPPED
Debugger state when the debugger is stopped, e.g. at a breakpoint. |
static String |
PROP_BREAKPOINTS
Name of property for the set of breakpoints in the system. |
static String |
PROP_CURRENT_LINE
Name of property for the debugger's current line. |
static String |
PROP_STATE
Name of property for the debugger's state. |
static String |
PROP_WATCHES
Name of property for the set of watches in the system. |
Constructor Summary | |
Debugger()
|
Method Summary | |
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Add a property change listener. |
abstract Breakpoint |
createBreakpoint(ConstructorElement method)
Create a new breakpoint assigned to a method (or constructor). |
abstract Breakpoint |
createBreakpoint(ConstructorElement method,
boolean hidden)
Create a new breakpoint assigned to a method (or constructor). |
abstract Breakpoint |
createBreakpoint(Line l)
Create a new breakpoint assigned to a specific line. |
abstract Breakpoint |
createBreakpoint(Line l,
boolean hidden)
Create a new breakpoint assigned to a specific line. |
abstract Watch |
createWatch()
Create new uninitialized watch. |
abstract Watch |
createWatch(String expr,
boolean hidden)
Create a watch with its expression set to an initial value. |
abstract Breakpoint |
findBreakpoint(ConstructorElement method)
Find the breakpoint assigned to a method (or constructor). |
abstract Breakpoint |
findBreakpoint(Line l)
Find the breakpoint assigned to a given line. |
abstract void |
finishDebugger()
Finish the debugger session. |
abstract Breakpoint[] |
getBreakpoints()
Get all breakpoints in the system. |
abstract Line |
getCurrentLine()
Get the current line of debugger. |
abstract int |
getState()
Get the state of the debugger. |
abstract Watch[] |
getWatches()
Get all watches in the system. |
abstract void |
go()
Go. |
abstract void |
removeAllBreakpoints()
Remove all breakpoints from the system. |
abstract void |
removeAllWatches()
Remove all watches from the system. |
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Remove a property change listener. |
abstract void |
startDebugger(DebuggerInfo info)
Start a new debugging session. |
abstract void |
stepOut()
Step out (of a statement). |
abstract void |
traceInto()
Trace into (a statement). |
abstract void |
traceOver()
Trace over (a statement). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int DEBUGGER_NOT_RUNNING
public static final int DEBUGGER_STARTING
public static final int DEBUGGER_RUNNING
public static final int DEBUGGER_STOPPED
public static final String PROP_STATE
public static final String PROP_BREAKPOINTS
public static final String PROP_WATCHES
public static final String PROP_CURRENT_LINE
public static final int ACTION_BREAKPOINT_HIT
public static final int ACTION_TRACE_OVER
public static final int ACTION_TRACE_INTO
public static final int ACTION_STEP_OUT
Constructor Detail |
public Debugger()
Method Detail |
public abstract void startDebugger(DebuggerInfo info) throws DebuggerException
info
- debugger startup infoDebuggerException
- if an error occurs while starting the debuggerpublic abstract void finishDebugger() throws DebuggerException
DebuggerException
- if there was problem during cleanuppublic abstract void traceInto() throws DebuggerException
DebuggerException
- if there is a problem during executionpublic abstract void traceOver() throws DebuggerException
DebuggerException
- if there is a problem during executionpublic abstract void go() throws DebuggerException
DebuggerException
- if there is a problem during executionpublic abstract void stepOut() throws DebuggerException
DebuggerException
- if there is a problem during executionpublic abstract Breakpoint createBreakpoint(Line l)
l
- line to create breakpoint atpublic abstract Breakpoint createBreakpoint(Line l, boolean hidden)
l
- line to create breakpoint athidden
- true
if the breakpoint should be hidden from the userpublic abstract Breakpoint findBreakpoint(Line l)
l
- line to find the breakpoint atnull
if there is no such breakpointpublic abstract Breakpoint createBreakpoint(ConstructorElement method)
method
- method or constructor with valid
declaring classIllegalArgumentException
- if the method does not have a declaring classpublic abstract Breakpoint createBreakpoint(ConstructorElement method, boolean hidden)
method
- method or constructor with valid
declaring classhidden
- true
if the breakpoint should be hidden from the userIllegalArgumentException
- if the method does not have a declaring classpublic abstract Breakpoint findBreakpoint(ConstructorElement method)
method
- method or constructor to find the breakpoint ofnull
if there is no such breakpointIllegalArgumentException
- if the method does not have a declaring classpublic abstract Breakpoint[] getBreakpoints()
public abstract void removeAllBreakpoints()
public abstract Watch createWatch()
public abstract Watch createWatch(String expr, boolean hidden)
expr
- expression to watch for (the format is the responsibility of the debugger implementation, but it is typically a variable name)hidden
- true
if the watch should be hidden from the userpublic abstract Watch[] getWatches()
public abstract void removeAllWatches()
public abstract int getState()
DEBUGGER_NOT_RUNNING
, DEBUGGER_RUNNING
, DEBUGGER_STOPPED
, or DEBUGGER_STARTING
public abstract Line getCurrentLine()
public abstract void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener to addpublic abstract void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |