public class PlayerSession extends Object implements Session, DProtocolNotifierIF, Runnable, IsolateController
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_STACK_DEPTH |
static long |
MAX_TERMINATE_WAIT_MILLIS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addWatch(long varId,
String varName,
int type,
int tag,
int isolateId)
Adds a watchpoint on the given expression
|
boolean |
bind()
Start up the session listening for incoming messages on the socket
|
void |
breakOnCaughtExceptions(boolean b)
The player always halts on exceptions that are not going to be caught;
this call allows the debugger to control its behavior when an exception
that *will* be caught is thrown.
|
void |
breakOnCaughtExceptions(boolean b,
int isolateId) |
Value |
callConstructor(String funcname,
Value[] args)
Invokes a constructor in the player.
|
Value |
callConstructorWorker(String funcname,
Value[] args,
int isolateId) |
Value |
callFunction(Value thisValue,
String funcname,
Value[] args)
Invokes a function.
|
Value |
callFunctionWorker(Value thisValue,
String funcname,
Value[] args,
int isolateId) |
Location |
clearBreakpoint(Location local)
Remove a breakpoint at given location.
|
boolean |
clearExceptionBreakpoint(String exceptionClass)
Clears an exception breakpoint.
|
boolean |
clearExceptionBreakpointWorker(String exceptionClass,
int isolateId) |
Watch |
clearWatch(Watch watch)
Remove a previously created watchpoint.
|
static PlayerSession |
createFromSocket(Socket s,
IDebuggerCallbacks debuggerCallbacks)
Deprecated.
Use createFromSocketWithOptions
|
static PlayerSession |
createFromSocketWithOptions(Socket s,
IDebuggerCallbacks debuggerCallbacks,
SessionManager sessionManager)
Creates a session from the socket.
|
void |
disconnected()
Issued when the socket connection to the player is cut
|
Value |
evalAs(Value value,
Value type)
Evaluate the ActionScript expression "value as type"
|
Value |
evalAsWorker(Value value,
Value type,
int isolateId) |
boolean |
evalIn(Value property,
Value object)
Evaluate the ActionScript expression "property in object"
|
boolean |
evalInstanceof(Value value,
String type)
Evaluate the ActionScript expression "value instanceof type"
|
boolean |
evalInstanceof(Value value,
Value type)
Evaluate the ActionScript expression "value instanceof type"
|
boolean |
evalInstanceofWorker(Value value,
String type,
int isolateId) |
boolean |
evalInstanceofWorker(Value value,
Value type,
int isolateId) |
boolean |
evalInWorker(Value property,
Value object,
int isolateId) |
boolean |
evalIs(Value value,
String type)
Evaluate the ActionScript expression "value is type"
|
boolean |
evalIs(Value value,
Value type)
Evaluate the ActionScript expression "value is type"
|
boolean |
evalIsWorker(Value value,
String type,
int isolateId) |
boolean |
evalIsWorker(Value value,
Value type,
int isolateId) |
byte[] |
getActions(int which,
int at,
int len)
Request a set of actions from the player
|
Location[] |
getBreakpointList()
Get a list of breakpoints
|
Exception |
getDisconnectCause()
Returns the root SocketException that caused the rxMessage()
thread to shut down.
|
int |
getEventCount()
Returns the number of events currently in the queue.
|
SourceFile |
getFile(int fileId,
int isolateId)
From a given file identifier return a source file object
|
Frame[] |
getFrames()
Returns an array of frames that identify the location and contain
arguments, locals and 'this' information for each frame on the
function call stack.
|
Frame[] |
getFramesWorker(int isolateId) |
Value |
getGlobal(String name)
Looks up a global name, like "MyClass", "String", etc.
|
Value |
getGlobalWorker(String name,
int isolateId) |
Process |
getLaunchProcess()
Returns the Process object, if any, that triggered this Session.
|
DMessageCounter |
getMessageCounter() |
boolean |
getOption(String optionName,
boolean defaultValue,
int isolateId)
Returns the value of a Flash Player boolean option that was requested by
OutGetOption and returned by InOption.
|
String |
getOption(String optionName,
String defaultValue,
int isolateId)
Returns the value of a Flash Player string option that was requested by
OutGetOption and returned by InOption.
|
int |
getPreference(String pref)
Return the value of a particular preference item
|
Object |
getPreferenceAsObject(String pref) |
Value |
getPreviousValue(long valueId,
int isolateId)
Returns the previous value object for the given id -- that is, the value that that
object had the last time the player was suspended.
|
Value |
getRawValue(long valueId,
int isolateId)
Returns the current value object for the given id; never requests it from the player.
|
SourceLocator |
getSourceLocator()
Gets the SourceLocator for this session.
|
int |
getSuspendActionIndex()
Return the offset in which the player has suspended itself.
|
DSuspendInfo |
getSuspendInfo()
Obtain all the suspend information
|
DSuspendInfo |
getSuspendInfoIsolate(int isolateId) |
int |
getSuspendOffset()
Return the offset in which the player has suspended itself.
|
SwfInfo[] |
getSwfs()
Obtain information about the various SWF(s) that have been
loaded into the Player, for this session.
|
SwfInfo[] |
getSwfsWorker(int isolateId) |
String |
getURI()
Returns the URL that identifies this Session.
|
Value |
getValue(long valueId)
From a given value identifier return a Value.
|
Value |
getValue(long varId,
String name,
int isolateId)
Get the value of the variable named 'name' using varId
as the context id for the Variable.
|
Value |
getValueWorker(long valueId,
int isolateId) |
Variable[] |
getVariableList()
Obtains a list of variables that are local to the current
halted state.
|
Variable[] |
getVariableListWorker(int isolateId) |
Watch[] |
getWatchList()
Get a list of the current watchpoint.
|
Watch[] |
getWatchListWorker(int isolateId) |
Isolate[] |
getWorkers()
Get an array of all workers that the debugger knows of.
|
IsolateSession |
getWorkerSession(int isolateId)
Return the worker specific session object that can be used
to communicate with that worker.
|
boolean |
isConnected()
Is the Player currently connected for this session.
|
boolean |
isSuspended()
Is the Player currently halted awaiting requests, such as continue,
stepOut, stepIn, stepOver.
|
boolean |
isWorkerSuspended(int isolateId) |
Set<String> |
keySet() |
void |
messageArrived(DMessage msg,
DProtocol which)
This is the core routine for decoding incoming messages and deciding what should be
done with them.
|
DebugEvent |
nextEvent()
Removes and returns the next event from queue
|
boolean |
playerCanBreakOnAllExceptions() |
boolean |
playerCanBreakOnAllExceptions(int isolateId) |
boolean |
playerCanCallFunctions() |
boolean |
playerCanCallFunctions(int isolateId) |
boolean |
playerCanTerminate() |
boolean |
playerSupportsGet() |
int |
playerVersion() |
Isolate[] |
refreshWorkers()
Ask the player again for a list of all workers.
|
boolean |
removeWatch(long varId,
String memberName,
int isolateId)
Removes a watchpoint on the given expression
|
void |
requestFrame(int depth,
int isolateId)
Asks the player to return information regarding our current context which includes
this pointer, arguments for current frame, locals, etc.
|
void |
requestFunctionNames(int moduleId,
int lineNbr,
int isolateId)
Sends a request to the player to obtain function names.
|
void |
requestSwfInfo(int at,
int isolateId)
Request information on a particular swf, used by DSwfInfo
to fill itself correctly
|
void |
resume()
Continue a halted session.
|
void |
resumeWorker(int isolateId) |
void |
run()
A background thread which wakes up periodically and fetches the SWF and SWD
from the Player for new movies that have loaded.
|
void |
setAIRLaunchInfo(AIRLaunchInfo airLaunchInfo) |
Location |
setBreakpoint(int fileId,
int lineNum)
Set a breakpoint on a line within the given file.
|
Location |
setBreakpointWorker(int fileId,
int lineNum,
int isolateId) |
boolean |
setExceptionBreakpoint(String exceptionClass)
Set an exception breakpoint.
|
boolean |
setExceptionBreakpointWorker(String exceptionClass,
int isolateId) |
void |
setLauncher(ILauncher launcher)
Sets the ILauncher instance which is associated with this session.
|
void |
setLaunchUrl(String url) |
void |
setPreference(String pref,
int value)
Set a property.
|
void |
setPreferences(Map<String,? extends Object> map)
Set preference
If an invalid preference is passed, it will be silently ignored.
|
FaultEvent |
setScalarMember(long varId,
String memberName,
int type,
String value,
int isolateId) |
void |
setSourceLocator(SourceLocator sourceLocator)
Sets the SourceLocator for this session.
|
Watch |
setWatch(Value v,
String memberName,
int kind)
Set a watchpoint on a given variable.
|
Watch |
setWatch(Watch watch)
Enables or disables a watchpoint.
|
void |
stepContinue()
Continue the process of stepping.
|
void |
stepContinueWorker(int isolateId) |
void |
stepInto()
Step to the next executable source line within the
program, will enter into functions.
|
void |
stepIntoWorker(int isolateId) |
void |
stepOut()
Step out of the current method/function onto the
next executable soruce line.
|
void |
stepOutWorker(int isolateId) |
void |
stepOver()
Step to the next executable source line within
the program, will NOT enter into functions.
|
void |
stepOverWorker(int isolateId) |
boolean |
supportsConcurrency()
Returns whether the target player supports concurrency.
|
boolean |
supportsConcurrency(int isolateId) |
boolean |
supportsWatchpoints()
Returns whether the target player supports watchpoints.
|
boolean |
supportsWatchpoints(int isolateId) |
boolean |
supportsWideLineNumbers() |
boolean |
supportsWideLineNumbers(int isolateId) |
void |
suspend()
Halt a running session.
|
int |
suspendReason()
Return the reason that the player has suspended itself.
|
int |
suspendReasonWorker(int isolateId) |
void |
suspendWorker(int isolateId) |
void |
terminate()
Destroys all objects related to the connection
including the process that was tied to this
session via SessionManager.launch(), if it
exists.
|
void |
unbind()
Permanently stops the debugging session and breaks the
connection to the Player
|
void |
waitForEvent()
Events provide a mechanism whereby status information is provided from
the Player in a timely fashion.
|
public static final int MAX_STACK_DEPTH
public static final long MAX_TERMINATE_WAIT_MILLIS
public static PlayerSession createFromSocket(Socket s, IDebuggerCallbacks debuggerCallbacks) throws IOException
s - debuggerCallbacks - IOExceptionpublic static PlayerSession createFromSocketWithOptions(Socket s, IDebuggerCallbacks debuggerCallbacks, SessionManager sessionManager) throws IOException
s - debuggerCallbacks - sessionManager - IOExceptionpublic DMessageCounter getMessageCounter()
public String getURI()
Sessionpublic boolean playerSupportsGet()
public int playerVersion()
public SourceLocator getSourceLocator()
SessiongetSourceLocator in interface Sessionpublic void setSourceLocator(SourceLocator sourceLocator)
SessionsetSourceLocator in interface Sessionpublic Process getLaunchProcess()
SessiongetLaunchProcess in interface Sessionpublic void setPreferences(Map<String,? extends Object> map)
public void setPreference(String pref, int value)
setPreference in interface Sessionpref - preference name, one of the strings listed abovevalue - value to set for preferencepublic int getPreference(String pref)
SessiongetPreference in interface Sessionpref - preference name, one of the strings listed in SessionManagerSessionManagerpublic boolean isConnected()
SessionisConnected in interface Sessionpublic boolean isSuspended()
throws NotConnectedException
SessionisSuspended in interface SessionNotConnectedException - if Player is disconnected from Sessionpublic boolean isWorkerSuspended(int isolateId)
throws NotConnectedException
isWorkerSuspended in interface IsolateControllerNotConnectedExceptionSession.isSuspended()public boolean bind()
throws VersionException
bind in interface SessionVersionException - connected to Player which does not support all API completelypublic void unbind()
public void terminate()
public void resume()
throws NotSuspendedException,
NotConnectedException,
NoResponseException
Sessionsuspend() method is called.
This method will NOT block. It will return immediately after the Player resumes execution. Use the isSuspended method to determine when the Player has halted.
resume in interface SessionNotSuspendedException - if Player is already runningNotConnectedException - if Player is disconnected from SessionNoResponseException - if times outpublic void suspend()
throws SuspendedException,
NotConnectedException,
NoResponseException
SessionThis method WILL BLOCK until the Player halts for some reason or an error occurs. During this period, one or more callbacks may be initiated.
suspend in interface SessionSuspendedException - if Player is already suspendedNotConnectedException - if Player is disconnected from SessionNoResponseException - if times outpublic DSuspendInfo getSuspendInfo()
public int suspendReason()
suspendReason in interface Sessionpublic int getSuspendOffset()
public int getSuspendActionIndex()
public SwfInfo[] getSwfs() throws NoResponseException
getSwfs in interface SessionNoResponseException - if times outpublic void requestSwfInfo(int at,
int isolateId)
throws NoResponseException
NoResponseExceptionpublic byte[] getActions(int which,
int at,
int len)
throws NoResponseException
NoResponseExceptionpublic void stepInto()
throws NotSuspendedException,
NoResponseException,
NotConnectedException
SessionThis method will NOT block. It will return immediately after the Player resumes execution. Use the isSuspended method to determine when the Player has halted.
stepInto in interface SessionNotSuspendedException - if Player is runningNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic void stepOut()
throws NotSuspendedException,
NoResponseException,
NotConnectedException
SessionThis method will NOT block. It will return immediately after the Player resumes execution. Use the isSuspended method to determine when the Player has halted.
stepOut in interface SessionNotSuspendedException - if Player is runningNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic void stepOver()
throws NotSuspendedException,
NoResponseException,
NotConnectedException
SessionThis method will NOT block. It will return immediately after the Player resumes execution. Use the isSuspended method to determine when the Player has halted.
stepOver in interface SessionNotSuspendedException - if Player is runningNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic void stepContinue()
throws NotSuspendedException,
NoResponseException,
NotConnectedException
SessionstepContinue in interface SessionNotSuspendedException - if Player is runningNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic void requestFunctionNames(int moduleId,
int lineNbr,
int isolateId)
throws VersionException,
NoResponseException
moduleId - lineNbr - VersionExceptionNoResponseExceptionpublic SourceFile getFile(int fileId, int isolateId)
public Location[] getBreakpointList()
getBreakpointList in interface Sessionpublic Location setBreakpoint(int fileId, int lineNum) throws NoResponseException, NotConnectedException
Session
Warning: setBreakpoint() and
clearBreakpoint() do not keep track of how many times they
have been called for a given Location. For example, if you make two calls
to setBreakpoint() for file X.as line 10, and then one
call to clearBreakpoint() for that same file and line,
then the breakpoint is gone. So, the caller is responsible for keeping
track of whether the user has set two breakpoints at the same location.
setBreakpoint in interface SessionNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic Location clearBreakpoint(Location local)
Session
Warning: setBreakpoint() and
clearBreakpoint() do not keep track of how many times they
have been called for a given Location. For example, if you make two calls
to setBreakpoint() for file X.as line 10, and then one
call to clearBreakpoint() for that same file and line,
then the breakpoint is gone. So, the caller is responsible for keeping
track of whether the user has set two breakpoints at the same location.
clearBreakpoint in interface Sessionpublic Watch[] getWatchList() throws NoResponseException, NotConnectedException
SessiongetWatchList in interface SessionNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic Watch[] getWatchListWorker(int isolateId) throws NoResponseException, NotConnectedException
getWatchListWorker in interface IsolateControllerNoResponseExceptionNotConnectedExceptionSession.getWatchList()public Watch setWatch(Value v, String memberName, int kind) throws NoResponseException, NotConnectedException, NotSupportedException
SessionSpecification of the variable item to be watched requires two pieces of information (similar to setScalarMember()) The Variable and the name of the particular member to be watched within the variable. For example if the watchpoint is to be applied to 'a.b.c'. First the Value for object 'a.b' must be obtained and then the call setWatch(v, "c", ...) can be issued. The watchpoint can be triggered (i.e. the Player suspended) when either a read or write (or either) occurs on the variable. If the Player is suspended due to a watchpoint being fired, then the suspendReason() call will return SuspendReason.WATCH.
Setting a watchpoint multiple times on the same variable will result in the old watchpoint being removed from the list and a new watchpoint being added to the end of the list.
Likewise, if a previously existing watchpoint is modified by specifiying a different kind variable then the old watchpoint will be removed from the list and a new watchpoint will be added to the end of the list.
setWatch in interface Sessionv - the variable, upon whose member, the watch is to be placed.kind - access type that will trigger the watchpoint to fire --
read, write, or read/write. See WatchKind.NoResponseException - if times outNotConnectedException - if Player is disconnected from SessionNotSupportedException - if the Player does not support watchpoints,
or does not support watchpoints on this particular member (e.g. because
it is a getter or a dynamic variable).WatchKindpublic Watch setWatch(Watch watch) throws NoResponseException, NotConnectedException, NotSupportedException
SessionsetWatch in interface Sessionwatch - the watch to enable or disableNoResponseExceptionNotConnectedExceptionNotSupportedExceptionpublic Watch clearWatch(Watch watch) throws NoResponseException, NotConnectedException
SessionclearWatch in interface SessionNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic Variable[] getVariableList() throws NotSuspendedException, NoResponseException, NotConnectedException, VersionException
SessiongetVariableList in interface SessionNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionVersionExceptionFrame.getLocals(flash.tools.debugger.Session)public Variable[] getVariableListWorker(int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException, VersionException
getVariableListWorker in interface IsolateControllerNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionVersionExceptionSession.getVariableList()public Frame[] getFrames() throws NotConnectedException
SessiongetFrames in interface SessionNotConnectedException - if Player is disconnected from Sessionpublic void requestFrame(int depth,
int isolateId)
throws NotSuspendedException,
NoResponseException,
NotConnectedException
public Value getValue(long valueId) throws NotSuspendedException, NoResponseException, NotConnectedException
SessiongetValue in interface SessionvalueId - identifier from Value class or
from a call to Value.getId()NotSuspendedException - if Player is runningNoResponseException - if times outNotConnectedException - if Player is disconnected from Sessionpublic Value getValueWorker(long valueId, int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
getValueWorker in interface IsolateControllerNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionSession.getValue(long)public Value getRawValue(long valueId, int isolateId)
public Value getPreviousValue(long valueId, int isolateId)
null if we don't have
a value for that id.public Value getGlobal(String name) throws NotSuspendedException, NoResponseException, NotConnectedException
SessiongetGlobal in interface Sessionnull if the global does not exist.NotSuspendedExceptionNoResponseExceptionNotConnectedExceptionpublic Value getGlobalWorker(String name, int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
getGlobalWorker in interface IsolateControllerNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionSession.getGlobal(String)public Value getValue(long varId, String name, int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
public Value callFunction(Value thisValue, String funcname, Value[] args) throws PlayerDebugException
SessioncallFunction(myobj, "toString", new Value[0]) will call
myobj.toString(). Not supported in Player 9 or AIR 1.0.
If you call this function and the player to which you are connected
doesn't support this feature, this will throw a PlayerDebugException.callFunction in interface SessionPlayerDebugExceptionpublic Value callFunctionWorker(Value thisValue, String funcname, Value[] args, int isolateId) throws PlayerDebugException
callFunctionWorker in interface IsolateControllerPlayerDebugExceptionSession.callFunction(Value, String, Value[])public Value callConstructor(String funcname, Value[] args) throws PlayerDebugException
SessioncallConstructor in interface SessionPlayerDebugExceptionpublic Value callConstructorWorker(String funcname, Value[] args, int isolateId) throws PlayerDebugException
callConstructorWorker in interface IsolateControllerPlayerDebugExceptionSession.callConstructor(String, Value[])public FaultEvent setScalarMember(long varId, String memberName, int type, String value, int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
public void waitForEvent()
throws NotConnectedException,
InterruptedException
Session
The caller has the option of either polling the event queue via
nextEvent() or calling waitForEvent() which
blocks the calling thread until one or more events exist in the queue.
waitForEvent in interface SessionNotConnectedException - if Session is disconnected from PlayerInterruptedExceptionpublic int getEventCount()
SessiongetEventCount in interface Sessionpublic DebugEvent nextEvent()
Sessionpublic boolean addWatch(long varId,
String varName,
int type,
int tag,
int isolateId)
throws NoResponseException,
NotConnectedException,
NotSupportedException
public boolean removeWatch(long varId,
String memberName,
int isolateId)
throws NoResponseException,
NotConnectedException
public boolean supportsWatchpoints()
SessionsupportsWatchpoints in interface SessionSession.setWatch(Value, String, int)public boolean supportsWatchpoints(int isolateId)
supportsWatchpoints in interface IsolateControllerSession.supportsWatchpoints()public boolean playerCanBreakOnAllExceptions()
public boolean playerCanBreakOnAllExceptions(int isolateId)
playerCanBreakOnAllExceptions in interface IsolateControllerflash.tools.debugger.Session#playerCanBreakOnAllExceptions()public boolean supportsConcurrency(int isolateId)
public boolean supportsConcurrency()
SessionsupportsConcurrency in interface Session#setActiveIsolate(Value)public boolean supportsWideLineNumbers()
public boolean supportsWideLineNumbers(int isolateId)
supportsWideLineNumbers in interface IsolateControllerflash.tools.debugger.Session#supportsWideLineNumbers()public boolean playerCanTerminate()
public boolean playerCanCallFunctions()
public boolean playerCanCallFunctions(int isolateId)
playerCanCallFunctions in interface IsolateControllerflash.tools.debugger.Session#playerCanCallFunctions(String)public boolean getOption(String optionName, boolean defaultValue, int isolateId)
optionName - the name of the optionpublic String getOption(String optionName, String defaultValue, int isolateId)
optionName - the name of the optionpublic void disconnected()
disconnected in interface DProtocolNotifierIFpublic void messageArrived(DMessage msg, DProtocol which)
messageArrived in interface DProtocolNotifierIFpublic void run()
public void setLaunchUrl(String url)
public void setAIRLaunchInfo(AIRLaunchInfo airLaunchInfo)
public void breakOnCaughtExceptions(boolean b)
throws NotSupportedException,
NoResponseException
SessionbreakOnCaughtExceptions in interface SessionNotSupportedException - thrown by older players that don't support this feature.NoResponseExceptionpublic void breakOnCaughtExceptions(boolean b,
int isolateId)
throws NotSupportedException,
NoResponseException
breakOnCaughtExceptions in interface IsolateControllerNotSupportedExceptionNoResponseExceptionSession.breakOnCaughtExceptions(boolean)public boolean evalIs(Value value, Value type) throws PlayerDebugException, PlayerFaultException
SessionevalIs in interface SessionPlayerDebugExceptionPlayerFaultExceptionpublic boolean evalIs(Value value, String type) throws PlayerDebugException, PlayerFaultException
SessionevalIs in interface SessionPlayerDebugExceptionPlayerFaultExceptionpublic boolean evalInstanceof(Value value, Value type) throws PlayerDebugException, PlayerFaultException
SessionevalInstanceof in interface SessionPlayerDebugExceptionPlayerFaultExceptionpublic boolean evalInstanceof(Value value, String type) throws PlayerDebugException, PlayerFaultException
SessionevalInstanceof in interface SessionPlayerDebugExceptionPlayerFaultExceptionpublic boolean evalIsWorker(Value value, Value type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalIsWorker in interface IsolateControllerPlayerDebugExceptionPlayerFaultExceptionSession.evalIs(Value, Value)public boolean evalIsWorker(Value value, String type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalIsWorker in interface IsolateControllerPlayerDebugExceptionPlayerFaultExceptionSession.evalIs(Value, String)public boolean evalInstanceofWorker(Value value, Value type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalInstanceofWorker in interface IsolateControllerPlayerDebugExceptionPlayerFaultExceptionSession.evalInstanceof(Value, Value)public boolean evalInstanceofWorker(Value value, String type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalInstanceofWorker in interface IsolateControllerPlayerDebugExceptionPlayerFaultExceptionSession.evalInstanceof(Value, String)public boolean evalIn(Value property, Value object) throws PlayerDebugException, PlayerFaultException
SessionevalIn in interface SessionPlayerDebugExceptionPlayerFaultExceptionpublic Value evalAs(Value value, Value type) throws PlayerDebugException, PlayerFaultException
SessionevalAs in interface SessionPlayerDebugExceptionPlayerFaultExceptionpublic Exception getDisconnectCause()
SessiongetDisconnectCause in interface Sessionpublic Isolate[] refreshWorkers() throws NotSupportedException, NotSuspendedException, NoResponseException, NotConnectedException
SessionrefreshWorkers in interface SessionNotSupportedExceptionNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionpublic Isolate[] getWorkers()
SessiongetWorkers in interface Sessionpublic void resumeWorker(int isolateId)
throws NotSuspendedException,
NotConnectedException,
NoResponseException
resumeWorker in interface IsolateControllerNotSuspendedExceptionNotConnectedExceptionNoResponseExceptionSession.resume()public int suspendReasonWorker(int isolateId)
throws NotConnectedException
suspendReasonWorker in interface IsolateControllerNotConnectedExceptionSession.isSuspended()public DSuspendInfo getSuspendInfoIsolate(int isolateId)
public void stepContinueWorker(int isolateId)
throws NotSuspendedException,
NoResponseException,
NotConnectedException
stepContinueWorker in interface IsolateControllerNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionSession.stepContinue()public Location setBreakpointWorker(int fileId, int lineNum, int isolateId) throws NoResponseException, NotConnectedException
setBreakpointWorker in interface IsolateControllerNoResponseExceptionNotConnectedExceptionSession.setBreakpoint(int, int)public Frame[] getFramesWorker(int isolateId) throws NotConnectedException
getFramesWorker in interface IsolateControllerNotConnectedExceptionSession.getFrames()public SwfInfo[] getSwfsWorker(int isolateId) throws NoResponseException
getSwfsWorker in interface IsolateControllerNoResponseExceptionSession.getSwfs()public void stepIntoWorker(int isolateId)
throws NotSuspendedException,
NoResponseException,
NotConnectedException
stepIntoWorker in interface IsolateControllerNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionSession.stepInto()public void stepOutWorker(int isolateId)
throws NotSuspendedException,
NoResponseException,
NotConnectedException
stepOutWorker in interface IsolateControllerNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionSession.stepOut()public void stepOverWorker(int isolateId)
throws NotSuspendedException,
NoResponseException,
NotConnectedException
stepOverWorker in interface IsolateControllerNotSuspendedExceptionNoResponseExceptionNotConnectedExceptionSession.stepOver()public boolean evalInWorker(Value property, Value object, int isolateId) throws PlayerDebugException, PlayerFaultException
evalInWorker in interface IsolateControllerPlayerDebugExceptionPlayerFaultExceptionSession.evalIn(Value, Value)public Value evalAsWorker(Value value, Value type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalAsWorker in interface IsolateControllerPlayerDebugExceptionPlayerFaultExceptionSession.evalAs(Value, Value)public void suspendWorker(int isolateId)
throws SuspendedException,
NotConnectedException,
NoResponseException
suspendWorker in interface IsolateControllerSuspendedExceptionNotConnectedExceptionNoResponseExceptionSession.suspend()public IsolateSession getWorkerSession(int isolateId)
SessiongetWorkerSession in interface Sessionpublic boolean setExceptionBreakpoint(String exceptionClass) throws NoResponseException, NotConnectedException
SessionsetExceptionBreakpoint in interface SessionNoResponseExceptionNotConnectedExceptionpublic boolean setExceptionBreakpointWorker(String exceptionClass, int isolateId) throws NoResponseException, NotConnectedException
setExceptionBreakpointWorker in interface IsolateControllerNoResponseExceptionNotConnectedExceptionSession.setExceptionBreakpoint(String)public boolean clearExceptionBreakpoint(String exceptionClass) throws NoResponseException, NotConnectedException
SessionclearExceptionBreakpoint in interface SessionNoResponseExceptionNotConnectedExceptionpublic boolean clearExceptionBreakpointWorker(String exceptionClass, int isolateId) throws NoResponseException, NotConnectedException
clearExceptionBreakpointWorker in interface IsolateControllerNoResponseExceptionNotConnectedExceptionSession.clearExceptionBreakpoint(String)public void setLauncher(ILauncher launcher)
SessionsetLauncher in interface Sessionlauncher - ILauncher instance used to launch & terminate the process.Copyright © 2016 The Apache Software Foundation. All rights reserved.