|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.netbeans.api.debugger.jpda.JPDADebugger
Represents one JPDA debugger session (one
VirtualMachine
).
How to obtain it from DebuggerEngine:
JPDADebugger jpdaDebugger = (JPDADebugger) debuggerEngine.lookup (JPDADebugger.class);
Field Summary | |
static String |
ENGINE_ID
ID of JPDA Debugger Engine. |
static String |
PROP_CURRENT_CALL_STACK_FRAME
Name of property for current stack frame. |
static String |
PROP_CURRENT_THREAD
Name of property for current thread. |
static String |
PROP_STATE
Name of property for state of debugger. |
static String |
PROP_SUSPEND
Property name constant. |
static String |
SESSION_ID
ID of JPDA Debugger Engine. |
static int |
STATE_DISCONNECTED
Debugger state constant. |
static int |
STATE_RUNNING
Debugger state constant. |
static int |
STATE_STARTING
Debugger state constant. |
static int |
STATE_STOPPED
Debugger state constant. |
static int |
SUSPEND_ALL
Suspend property value constant. |
static int |
SUSPEND_EVENT_THREAD
Suspend property value constant. |
Constructor Summary | |
JPDADebugger()
|
Method Summary | |
abstract void |
addPropertyChangeListener(PropertyChangeListener l)
Adds property change listener. |
abstract void |
addPropertyChangeListener(String propertyName,
PropertyChangeListener l)
Adds property change listener. |
static JPDADebugger |
attach(String hostName,
int portNumber,
Object[] services)
This utility method helps to start a new JPDA debugger session. |
static JPDADebugger |
attach(String name,
Object[] services)
This utility method helps to start a new JPDA debugger session. |
abstract boolean |
canFixClasses()
Returns true if this debugger supports fix & continue
(HotSwap). |
abstract boolean |
canPopFrames()
Returns true if this debugger supports Pop action. |
abstract Variable |
evaluate(String expression)
Evaluates given expression in the current context. |
protected void |
fireBreakpointEvent(JPDABreakpoint breakpoint,
JPDABreakpointEvent event)
Helper method that fires JPDABreakpointEvent on JPDABreakpoints. |
abstract void |
fixClasses(Map classes)
Implements fix & continue (HotSwap). |
abstract CallStackFrame |
getCurrentCallStackFrame()
Returns current stack frame or null. |
abstract JPDAThread |
getCurrentThread()
Returns current thread or null. |
abstract SmartSteppingFilter |
getSmartSteppingFilter()
Returns instance of SmartSteppingFilter. |
abstract int |
getState()
Returns current state of JPDA debugger. |
abstract int |
getSuspend()
Gets value of suspend property. |
static void |
launch(String mainClassName,
String[] args,
String classPath,
boolean suspend)
This utility method helps to start a new JPDA debugger session. |
static JPDADebugger |
listen(com.sun.jdi.connect.ListeningConnector connector,
Map args,
Object[] services)
This utility method helps to start a new JPDA debugger session. |
abstract void |
removePropertyChangeListener(PropertyChangeListener l)
Removes property change listener. |
abstract void |
removePropertyChangeListener(String propertyName,
PropertyChangeListener l)
Removes property change listener. |
abstract void |
setSuspend(int s)
Sets value of suspend property. |
static void |
startListening(com.sun.jdi.connect.ListeningConnector connector,
Map args,
Object[] services)
This utility method helps to start a new JPDA debugger session. |
abstract void |
waitRunning()
Waits till the Virtual Machine is started and returns DebuggerStartException if some problem occurres. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String PROP_STATE
public static final String PROP_CURRENT_THREAD
public static final String PROP_CURRENT_CALL_STACK_FRAME
public static final String PROP_SUSPEND
public static final int SUSPEND_ALL
public static final int SUSPEND_EVENT_THREAD
public static final int STATE_STARTING
public static final int STATE_RUNNING
public static final int STATE_STOPPED
public static final int STATE_DISCONNECTED
public static final String ENGINE_ID
public static final String SESSION_ID
Constructor Detail |
public JPDADebugger()
Method Detail |
public static void launch(String mainClassName, String[] args, String classPath, boolean suspend)
LaunchingDICookie
and
DebuggerManager.getDebuggerManager()
.
mainClassName
- a name or main classargs
- command line argumentsclassPath
- a classPathsuspend
- if true session will be suspendedpublic static JPDADebugger listen(com.sun.jdi.connect.ListeningConnector connector, Map args, Object[] services) throws DebuggerStartException
ListeningDICookie
and
DebuggerManager.getDebuggerManager()
.
DebuggerStartException
public static void startListening(com.sun.jdi.connect.ListeningConnector connector, Map args, Object[] services) throws DebuggerStartException
ListeningDICookie
and
DebuggerManager.getDebuggerManager()
.
DebuggerStartException
public static JPDADebugger attach(String hostName, int portNumber, Object[] services) throws DebuggerStartException
AttachingDICookie
and
DebuggerManager.getDebuggerManager()
.
hostName
- a name of computer to attach toportNumber
- a potr number
DebuggerStartException
public static JPDADebugger attach(String name, Object[] services) throws DebuggerStartException
AttachingDICookie
and
DebuggerManager.getDebuggerManager()
.
DebuggerStartException
public abstract int getState()
STATE_STARTING
,
STATE_RUNNING
,
STATE_STOPPED
,
STATE_DISCONNECTED
public abstract int getSuspend()
public abstract void setSuspend(int s)
s
- a new value of suspend propertypublic abstract JPDAThread getCurrentThread()
public abstract CallStackFrame getCurrentCallStackFrame()
public abstract Variable evaluate(String expression) throws InvalidExpressionException
expression
- a expression to be evaluated
InvalidExpressionException
public abstract void waitRunning() throws DebuggerStartException
DebuggerStartException
if some problem occurres.
DebuggerStartException
- is some problems occurres during debugger
startAbstractDICookie.getVirtualMachine()
public abstract boolean canFixClasses()
true
if this debugger supports fix & continue
(HotSwap).
true
if this debugger supports fix & continuepublic abstract boolean canPopFrames()
true
if this debugger supports Pop action.
true
if this debugger supports Pop actionpublic abstract void fixClasses(Map classes)
public abstract SmartSteppingFilter getSmartSteppingFilter()
protected void fireBreakpointEvent(JPDABreakpoint breakpoint, JPDABreakpointEvent event)
breakpoint
- a breakpoint to be changedevent
- a event to be firedpublic abstract void addPropertyChangeListener(PropertyChangeListener l)
l
- new listener.public abstract void removePropertyChangeListener(PropertyChangeListener l)
l
- removed listener.public abstract void addPropertyChangeListener(String propertyName, PropertyChangeListener l)
propertyName
- a name of property to listen onl
- new listener.public abstract void removePropertyChangeListener(String propertyName, PropertyChangeListener l)
propertyName
- a name of property to listen onl
- removed listener.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |