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
- IOException
public static PlayerSession createFromSocketWithOptions(Socket s, IDebuggerCallbacks debuggerCallbacks, SessionManager sessionManager) throws IOException
s
- debuggerCallbacks
- sessionManager
- IOException
public DMessageCounter getMessageCounter()
public String getURI()
Session
public boolean playerSupportsGet()
public int playerVersion()
public SourceLocator getSourceLocator()
Session
getSourceLocator
in interface Session
public void setSourceLocator(SourceLocator sourceLocator)
Session
setSourceLocator
in interface Session
public Process getLaunchProcess()
Session
getLaunchProcess
in interface Session
public void setPreferences(Map<String,? extends Object> map)
public void setPreference(String pref, int value)
setPreference
in interface Session
pref
- preference name, one of the strings listed abovevalue
- value to set for preferencepublic int getPreference(String pref)
Session
getPreference
in interface Session
pref
- preference name, one of the strings listed in SessionManager
SessionManager
public boolean isConnected()
Session
isConnected
in interface Session
public boolean isSuspended() throws NotConnectedException
Session
isSuspended
in interface Session
NotConnectedException
- if Player is disconnected from Sessionpublic boolean isWorkerSuspended(int isolateId) throws NotConnectedException
isWorkerSuspended
in interface IsolateController
NotConnectedException
Session.isSuspended()
public boolean bind() throws VersionException
bind
in interface Session
VersionException
- connected to Player which does not support all API completelypublic void unbind()
public void terminate()
public void resume() throws NotSuspendedException, NotConnectedException, NoResponseException
Session
suspend()
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 Session
NotSuspendedException
- if Player is already runningNotConnectedException
- if Player is disconnected from SessionNoResponseException
- if times outpublic void suspend() throws SuspendedException, NotConnectedException, NoResponseException
Session
This 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 Session
SuspendedException
- if Player is already suspendedNotConnectedException
- if Player is disconnected from SessionNoResponseException
- if times outpublic DSuspendInfo getSuspendInfo()
public int suspendReason()
suspendReason
in interface Session
public int getSuspendOffset()
public int getSuspendActionIndex()
public SwfInfo[] getSwfs() throws NoResponseException
getSwfs
in interface Session
NoResponseException
- if times outpublic void requestSwfInfo(int at, int isolateId) throws NoResponseException
NoResponseException
public byte[] getActions(int which, int at, int len) throws NoResponseException
NoResponseException
public void stepInto() throws NotSuspendedException, NoResponseException, NotConnectedException
Session
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.
stepInto
in interface Session
NotSuspendedException
- if Player is runningNoResponseException
- if times outNotConnectedException
- if Player is disconnected from Sessionpublic void stepOut() throws NotSuspendedException, NoResponseException, NotConnectedException
Session
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.
stepOut
in interface Session
NotSuspendedException
- if Player is runningNoResponseException
- if times outNotConnectedException
- if Player is disconnected from Sessionpublic void stepOver() throws NotSuspendedException, NoResponseException, NotConnectedException
Session
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.
stepOver
in interface Session
NotSuspendedException
- if Player is runningNoResponseException
- if times outNotConnectedException
- if Player is disconnected from Sessionpublic void stepContinue() throws NotSuspendedException, NoResponseException, NotConnectedException
Session
stepContinue
in interface Session
NotSuspendedException
- 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
- VersionException
NoResponseException
public SourceFile getFile(int fileId, int isolateId)
public Location[] getBreakpointList()
getBreakpointList
in interface Session
public 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 Session
NoResponseException
- 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 Session
public Watch[] getWatchList() throws NoResponseException, NotConnectedException
Session
getWatchList
in interface Session
NoResponseException
- if times outNotConnectedException
- if Player is disconnected from Sessionpublic Watch[] getWatchListWorker(int isolateId) throws NoResponseException, NotConnectedException
getWatchListWorker
in interface IsolateController
NoResponseException
NotConnectedException
Session.getWatchList()
public Watch setWatch(Value v, String memberName, int kind) throws NoResponseException, NotConnectedException, NotSupportedException
Session
Specification 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 Session
v
- 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).WatchKind
public Watch setWatch(Watch watch) throws NoResponseException, NotConnectedException, NotSupportedException
Session
setWatch
in interface Session
watch
- the watch to enable or disableNoResponseException
NotConnectedException
NotSupportedException
public Watch clearWatch(Watch watch) throws NoResponseException, NotConnectedException
Session
clearWatch
in interface Session
NoResponseException
- if times outNotConnectedException
- if Player is disconnected from Sessionpublic Variable[] getVariableList() throws NotSuspendedException, NoResponseException, NotConnectedException, VersionException
Session
getVariableList
in interface Session
NotSuspendedException
NoResponseException
NotConnectedException
VersionException
Frame.getLocals(flash.tools.debugger.Session)
public Variable[] getVariableListWorker(int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException, VersionException
getVariableListWorker
in interface IsolateController
NotSuspendedException
NoResponseException
NotConnectedException
VersionException
Session.getVariableList()
public Frame[] getFrames() throws NotConnectedException
Session
getFrames
in interface Session
NotConnectedException
- 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
Session
getValue
in interface Session
valueId
- 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 IsolateController
NotSuspendedException
NoResponseException
NotConnectedException
Session.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
Session
getGlobal
in interface Session
null
if the global does not exist.NotSuspendedException
NoResponseException
NotConnectedException
public Value getGlobalWorker(String name, int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
getGlobalWorker
in interface IsolateController
NotSuspendedException
NoResponseException
NotConnectedException
Session.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
Session
callFunction(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 Session
PlayerDebugException
public Value callFunctionWorker(Value thisValue, String funcname, Value[] args, int isolateId) throws PlayerDebugException
callFunctionWorker
in interface IsolateController
PlayerDebugException
Session.callFunction(Value, String, Value[])
public Value callConstructor(String funcname, Value[] args) throws PlayerDebugException
Session
callConstructor
in interface Session
PlayerDebugException
public Value callConstructorWorker(String funcname, Value[] args, int isolateId) throws PlayerDebugException
callConstructorWorker
in interface IsolateController
PlayerDebugException
Session.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 Session
NotConnectedException
- if Session is disconnected from PlayerInterruptedException
public int getEventCount()
Session
getEventCount
in interface Session
public DebugEvent nextEvent()
Session
public 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()
Session
supportsWatchpoints
in interface Session
Session.setWatch(Value, String, int)
public boolean supportsWatchpoints(int isolateId)
supportsWatchpoints
in interface IsolateController
Session.supportsWatchpoints()
public boolean playerCanBreakOnAllExceptions()
public boolean playerCanBreakOnAllExceptions(int isolateId)
playerCanBreakOnAllExceptions
in interface IsolateController
flash.tools.debugger.Session#playerCanBreakOnAllExceptions()
public boolean supportsConcurrency(int isolateId)
public boolean supportsConcurrency()
Session
supportsConcurrency
in interface Session
#setActiveIsolate(Value)
public boolean supportsWideLineNumbers()
public boolean supportsWideLineNumbers(int isolateId)
supportsWideLineNumbers
in interface IsolateController
flash.tools.debugger.Session#supportsWideLineNumbers()
public boolean playerCanTerminate()
public boolean playerCanCallFunctions()
public boolean playerCanCallFunctions(int isolateId)
playerCanCallFunctions
in interface IsolateController
flash.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 DProtocolNotifierIF
public void messageArrived(DMessage msg, DProtocol which)
messageArrived
in interface DProtocolNotifierIF
public void run()
public void setLaunchUrl(String url)
public void setAIRLaunchInfo(AIRLaunchInfo airLaunchInfo)
public void breakOnCaughtExceptions(boolean b) throws NotSupportedException, NoResponseException
Session
breakOnCaughtExceptions
in interface Session
NotSupportedException
- thrown by older players that don't support this feature.NoResponseException
public void breakOnCaughtExceptions(boolean b, int isolateId) throws NotSupportedException, NoResponseException
breakOnCaughtExceptions
in interface IsolateController
NotSupportedException
NoResponseException
Session.breakOnCaughtExceptions(boolean)
public boolean evalIs(Value value, Value type) throws PlayerDebugException, PlayerFaultException
Session
evalIs
in interface Session
PlayerDebugException
PlayerFaultException
public boolean evalIs(Value value, String type) throws PlayerDebugException, PlayerFaultException
Session
evalIs
in interface Session
PlayerDebugException
PlayerFaultException
public boolean evalInstanceof(Value value, Value type) throws PlayerDebugException, PlayerFaultException
Session
evalInstanceof
in interface Session
PlayerDebugException
PlayerFaultException
public boolean evalInstanceof(Value value, String type) throws PlayerDebugException, PlayerFaultException
Session
evalInstanceof
in interface Session
PlayerDebugException
PlayerFaultException
public boolean evalIsWorker(Value value, Value type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalIsWorker
in interface IsolateController
PlayerDebugException
PlayerFaultException
Session.evalIs(Value, Value)
public boolean evalIsWorker(Value value, String type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalIsWorker
in interface IsolateController
PlayerDebugException
PlayerFaultException
Session.evalIs(Value, String)
public boolean evalInstanceofWorker(Value value, Value type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalInstanceofWorker
in interface IsolateController
PlayerDebugException
PlayerFaultException
Session.evalInstanceof(Value, Value)
public boolean evalInstanceofWorker(Value value, String type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalInstanceofWorker
in interface IsolateController
PlayerDebugException
PlayerFaultException
Session.evalInstanceof(Value, String)
public boolean evalIn(Value property, Value object) throws PlayerDebugException, PlayerFaultException
Session
evalIn
in interface Session
PlayerDebugException
PlayerFaultException
public Value evalAs(Value value, Value type) throws PlayerDebugException, PlayerFaultException
Session
evalAs
in interface Session
PlayerDebugException
PlayerFaultException
public Exception getDisconnectCause()
Session
getDisconnectCause
in interface Session
public Isolate[] refreshWorkers() throws NotSupportedException, NotSuspendedException, NoResponseException, NotConnectedException
Session
refreshWorkers
in interface Session
NotSupportedException
NotSuspendedException
NoResponseException
NotConnectedException
public Isolate[] getWorkers()
Session
getWorkers
in interface Session
public void resumeWorker(int isolateId) throws NotSuspendedException, NotConnectedException, NoResponseException
resumeWorker
in interface IsolateController
NotSuspendedException
NotConnectedException
NoResponseException
Session.resume()
public int suspendReasonWorker(int isolateId) throws NotConnectedException
suspendReasonWorker
in interface IsolateController
NotConnectedException
Session.isSuspended()
public DSuspendInfo getSuspendInfoIsolate(int isolateId)
public void stepContinueWorker(int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
stepContinueWorker
in interface IsolateController
NotSuspendedException
NoResponseException
NotConnectedException
Session.stepContinue()
public Location setBreakpointWorker(int fileId, int lineNum, int isolateId) throws NoResponseException, NotConnectedException
setBreakpointWorker
in interface IsolateController
NoResponseException
NotConnectedException
Session.setBreakpoint(int, int)
public Frame[] getFramesWorker(int isolateId) throws NotConnectedException
getFramesWorker
in interface IsolateController
NotConnectedException
Session.getFrames()
public SwfInfo[] getSwfsWorker(int isolateId) throws NoResponseException
getSwfsWorker
in interface IsolateController
NoResponseException
Session.getSwfs()
public void stepIntoWorker(int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
stepIntoWorker
in interface IsolateController
NotSuspendedException
NoResponseException
NotConnectedException
Session.stepInto()
public void stepOutWorker(int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
stepOutWorker
in interface IsolateController
NotSuspendedException
NoResponseException
NotConnectedException
Session.stepOut()
public void stepOverWorker(int isolateId) throws NotSuspendedException, NoResponseException, NotConnectedException
stepOverWorker
in interface IsolateController
NotSuspendedException
NoResponseException
NotConnectedException
Session.stepOver()
public boolean evalInWorker(Value property, Value object, int isolateId) throws PlayerDebugException, PlayerFaultException
evalInWorker
in interface IsolateController
PlayerDebugException
PlayerFaultException
Session.evalIn(Value, Value)
public Value evalAsWorker(Value value, Value type, int isolateId) throws PlayerDebugException, PlayerFaultException
evalAsWorker
in interface IsolateController
PlayerDebugException
PlayerFaultException
Session.evalAs(Value, Value)
public void suspendWorker(int isolateId) throws SuspendedException, NotConnectedException, NoResponseException
suspendWorker
in interface IsolateController
SuspendedException
NotConnectedException
NoResponseException
Session.suspend()
public IsolateSession getWorkerSession(int isolateId)
Session
getWorkerSession
in interface Session
public boolean setExceptionBreakpoint(String exceptionClass) throws NoResponseException, NotConnectedException
Session
setExceptionBreakpoint
in interface Session
NoResponseException
NotConnectedException
public boolean setExceptionBreakpointWorker(String exceptionClass, int isolateId) throws NoResponseException, NotConnectedException
setExceptionBreakpointWorker
in interface IsolateController
NoResponseException
NotConnectedException
Session.setExceptionBreakpoint(String)
public boolean clearExceptionBreakpoint(String exceptionClass) throws NoResponseException, NotConnectedException
Session
clearExceptionBreakpoint
in interface Session
NoResponseException
NotConnectedException
public boolean clearExceptionBreakpointWorker(String exceptionClass, int isolateId) throws NoResponseException, NotConnectedException
clearExceptionBreakpointWorker
in interface IsolateController
NoResponseException
NotConnectedException
Session.clearExceptionBreakpoint(String)
public void setLauncher(ILauncher launcher)
Session
setLauncher
in interface Session
launcher
- ILauncher instance used to launch & terminate the process.Copyright © 2016 The Apache Software Foundation. All rights reserved.