public interface IJavaScriptBreakpointParticipant
IJavaScriptBreakpoint
.Modifier and Type | Field and Description |
---|---|
static int |
DONT_CARE
Return code indicating that this listener should not be considered
in a vote to suspend a thread or install a breakpoint.
|
static int |
DONT_SUSPEND
Return code in response to a "breakpoint hit" notification, indicating
a vote to not suspend (i.e. resume) the associated thread.
|
static int |
SUSPEND
Return code in response to a "breakpoint hit" notification, indicating
a vote to suspend the associated thread.
|
Modifier and Type | Method and Description |
---|---|
int |
breakpointHit(IJavaScriptThread thread,
IJavaScriptBreakpoint breakpoint)
Notification that the given breakpoint has been hit
in the specified thread.
|
int |
scriptLoaded(IJavaScriptThread thread,
ScriptReference script,
IJavaScriptBreakpoint breakpoint)
Notification that the given
ScriptReference has been loaded
in the specified thread. |
static final int SUSPEND
static final int DONT_SUSPEND
static final int DONT_CARE
int breakpointHit(IJavaScriptThread thread, IJavaScriptBreakpoint breakpoint)
SUSPEND
, the thread will suspend. If there
are no votes to suspend the thread, there must be at least one
DONT_SUSPEND
vote to avoid the suspension (resume). If all
listeners vote DONT_CARE
, the thread will suspend by default.
The thread the breakpoint has been encountered in is now suspended. Listeners may query thread state and perform evaluations. All subsequent breakpoints in this thread will be ignored until voting has completed.
thread
- the JavaScript threadbreakpoint
- the IJavaScriptBreakpoint
SUSPEND
,
DONT_SUSPEND
, or DONT_CARE
int scriptLoaded(IJavaScriptThread thread, ScriptReference script, IJavaScriptBreakpoint breakpoint)
ScriptReference
has been loaded
in the specified thread. Allows this listener to
vote to determine if the given thread should be suspended in
response to the breakpoint. If at least one listener votes to
SUSPEND
, the thread will suspend. If there
are no votes to suspend the thread, there must be at least one
DONT_SUSPEND
vote to avoid the suspension (resume). If all
listeners vote DONT_CARE
, the thread will suspend by default.
The thread the breakpoint has been encountered in is now suspended. Listeners may query thread state and perform evaluations. All subsequent breakpoints in this thread will be ignored until voting has completed.
thread
- the JavaScript threadscript
- the ScriptReference
that has been loadedbreakpoint
- the IJavaScriptBreakpoint
SUSPEND
,
DONT_SUSPEND
, or DONT_CARE
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.