Package me.topchetoeu.j2s.repl.debug
Class SimpleDebugger
java.lang.Object
me.topchetoeu.j2s.repl.debug.SimpleDebugger
- All Implemented Interfaces:
Debugger
,me.topchetoeu.j2s.runtime.debug.DebugHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
boolean
me.topchetoeu.j2s.repl.debug.SimpleDebugger.CatchType
me.topchetoeu.j2s.repl.debug.SimpleDebugger.State
static final String
static final String
final WebSocket
Fields inherited from interface me.topchetoeu.j2s.runtime.debug.DebugHandler
EMPTY, IGNORE, KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattach
(SimpleDebugHandler ctx) void
callFunctionOn
(V8Message msg) void
close()
void
void
void
void
me.topchetoeu.j2s.common.FunctionMap
getMap
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.FunctionBody func) void
void
getProperties
(V8Message msg) void
getScriptSource
(V8Message msg) void
onFramePop
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame) void
onFramePush
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame) void
onFunctionLoad
(me.topchetoeu.j2s.common.FunctionBody body, me.topchetoeu.j2s.common.FunctionMap map) boolean
onInstruction
(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame cf, me.topchetoeu.j2s.common.Instruction instruction, me.topchetoeu.j2s.runtime.values.Value returnVal, me.topchetoeu.j2s.runtime.exceptions.EngineException error, boolean caught) void
onSourceLoad
(me.topchetoeu.j2s.common.Filename filename, String source) void
void
releaseObject
(V8Message msg) void
void
void
void
runtimeEnable
(V8Message msg) void
void
void
void
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface me.topchetoeu.j2s.runtime.debug.DebugHandler
getMap, getMapOrEmpty, getMapOrEmpty, onInstruction
-
Field Details
-
VSCODE_EMPTY
-
VSCODE_SELF
-
CHROME_GET_PROP_FUNC
- See Also:
-
CHROME_GET_PROP_FUNC_2
- See Also:
-
VSCODE_CALL
- See Also:
-
VSCODE_AUTOCOMPLETE
- See Also:
-
enabled
public boolean enabled -
execptionType
public me.topchetoeu.j2s.repl.debug.SimpleDebugger.CatchType execptionType -
state
public me.topchetoeu.j2s.repl.debug.SimpleDebugger.State state -
ws
-
-
Constructor Details
-
SimpleDebugger
-
-
Method Details
-
enable
- Specified by:
enable
in interfaceDebugger
- Throws:
IOException
-
disable
- Specified by:
disable
in interfaceDebugger
- Throws:
IOException
-
close
public void close() -
getScriptSource
- Specified by:
getScriptSource
in interfaceDebugger
- Throws:
IOException
-
getPossibleBreakpoints
- Specified by:
getPossibleBreakpoints
in interfaceDebugger
- Throws:
IOException
-
pause
- Specified by:
pause
in interfaceDebugger
- Throws:
IOException
-
resume
- Specified by:
resume
in interfaceDebugger
- Throws:
IOException
-
setBreakpointByUrl
- Specified by:
setBreakpointByUrl
in interfaceDebugger
- Throws:
IOException
-
removeBreakpoint
- Specified by:
removeBreakpoint
in interfaceDebugger
- Throws:
IOException
-
continueToLocation
- Specified by:
continueToLocation
in interfaceDebugger
- Throws:
IOException
-
setPauseOnExceptions
- Specified by:
setPauseOnExceptions
in interfaceDebugger
- Throws:
IOException
-
stepInto
- Specified by:
stepInto
in interfaceDebugger
- Throws:
IOException
-
stepOut
- Specified by:
stepOut
in interfaceDebugger
- Throws:
IOException
-
stepOver
- Specified by:
stepOver
in interfaceDebugger
- Throws:
IOException
-
evaluateOnCallFrame
- Specified by:
evaluateOnCallFrame
in interfaceDebugger
- Throws:
IOException
-
releaseObjectGroup
- Specified by:
releaseObjectGroup
in interfaceDebugger
- Throws:
IOException
-
releaseObject
- Specified by:
releaseObject
in interfaceDebugger
- Throws:
IOException
-
getProperties
- Specified by:
getProperties
in interfaceDebugger
- Throws:
IOException
-
callFunctionOn
- Specified by:
callFunctionOn
in interfaceDebugger
- Throws:
IOException
-
runtimeEnable
- Specified by:
runtimeEnable
in interfaceDebugger
- Throws:
IOException
-
onSourceLoad
- Specified by:
onSourceLoad
in interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-
onFunctionLoad
public void onFunctionLoad(me.topchetoeu.j2s.common.FunctionBody body, me.topchetoeu.j2s.common.FunctionMap map) - Specified by:
onFunctionLoad
in interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-
onInstruction
public boolean onInstruction(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame cf, me.topchetoeu.j2s.common.Instruction instruction, me.topchetoeu.j2s.runtime.values.Value returnVal, me.topchetoeu.j2s.runtime.exceptions.EngineException error, boolean caught) - Specified by:
onInstruction
in interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-
onFramePush
public void onFramePush(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame) - Specified by:
onFramePush
in interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-
onFramePop
public void onFramePop(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.runtime.Frame frame) - Specified by:
onFramePop
in interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-
getMap
public me.topchetoeu.j2s.common.FunctionMap getMap(me.topchetoeu.j2s.common.Environment env, me.topchetoeu.j2s.common.FunctionBody func) - Specified by:
getMap
in interfaceme.topchetoeu.j2s.runtime.debug.DebugHandler
-
attach
-