|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IJavaScriptBreakpointParticipant
Describes a participant that will be consulted during the
suspending / resuming of an IJavaScriptBreakpoint
.
Every participant has a distinct vote to resume or suspend a breakpoint.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final int SUSPEND
static final int DONT_SUSPEND
static final int DONT_CARE
Method Detail |
---|
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
|
JavaScript Development Tools Release 3.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |