public interface Breakpoint
set*
method invocations will not take effect until
flush(org.eclipse.wst.jsdt.chromium.JavascriptVm.BreakpointCallback, org.eclipse.wst.jsdt.chromium.SyncCallback)
is called.Modifier and Type | Interface and Description |
---|---|
static class |
Breakpoint.Target
A reference to some JavaScript text that you can set breakpoints on.
|
Modifier and Type | Field and Description |
---|---|
static int |
EMPTY_VALUE
This value is used when the corresponding parameter is absent.
|
static long |
INVALID_ID
A breakpoint has this ID if it does not reflect an actual breakpoint in a
JavaScript VM debugger.
|
Modifier and Type | Method and Description |
---|---|
RelayOk |
clear(JavascriptVm.BreakpointCallback callback,
SyncCallback syncCallback)
Removes the breakpoint from the JS debugger and invokes the
callback once the operation has finished.
|
RelayOk |
flush(JavascriptVm.BreakpointCallback callback,
SyncCallback syncCallback)
Flushes the breakpoint parameter changes (set* methods) into the browser
and invokes the callback once the operation has finished.
|
java.lang.String |
getCondition() |
long |
getId() |
IgnoreCountBreakpointExtension |
getIgnoreCountBreakpointExtension() |
long |
getLineNumber()
Returns line number of the breakpoint.
|
Breakpoint.Target |
getTarget() |
boolean |
isEnabled() |
void |
setCondition(java.lang.String condition)
Sets the breakpoint condition as plain JavaScript (
null to clear). |
void |
setEnabled(boolean enabled)
Sets whether this breakpoint is enabled.
|
static final int EMPTY_VALUE
static final long INVALID_ID
Breakpoint.Target getTarget()
long getId()
INVALID_ID
if breakpoint was deletedlong getLineNumber()
UpdatableScript.setSourceOnRemote(java.lang.String, org.eclipse.wst.jsdt.chromium.UpdatableScript.UpdateCallback, org.eclipse.wst.jsdt.chromium.SyncCallback)
) this value
may become stale. It gets updated when JavascriptVm.listBreakpoints(org.eclipse.wst.jsdt.chromium.JavascriptVm.ListBreakpointsCallback, org.eclipse.wst.jsdt.chromium.SyncCallback)
asynchronous
method completes.boolean isEnabled()
void setEnabled(boolean enabled)
flush(org.eclipse.wst.jsdt.chromium.JavascriptVm.BreakpointCallback, org.eclipse.wst.jsdt.chromium.SyncCallback)
call.enabled
- whether the breakpoint should be enabledjava.lang.String getCondition()
null
if nonevoid setCondition(java.lang.String condition)
null
to clear).
Requires subsequent flush(org.eclipse.wst.jsdt.chromium.JavascriptVm.BreakpointCallback, org.eclipse.wst.jsdt.chromium.SyncCallback)
call.condition
- the new breakpoint conditionRelayOk clear(JavascriptVm.BreakpointCallback callback, SyncCallback syncCallback)
flush
invocation.callback
- to invoke once the operation result is availableRelayOk flush(JavascriptVm.BreakpointCallback callback, SyncCallback syncCallback)
callback
- to invoke once the operation result is availableIgnoreCountBreakpointExtension getIgnoreCountBreakpointExtension()
JavascriptVm.getBreakpointTypeExtension()
returnsCopyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.