public class LineBreakpoint extends Object implements ClassLoadListener
DebugEditor).| Modifier and Type | Field and Description |
|---|---|
protected com.sun.jdi.request.BreakpointRequest |
bpr |
protected Debugger |
dbg |
protected LineID |
line |
protected com.sun.jdi.ReferenceType |
theClass |
| Constructor and Description |
|---|
LineBreakpoint(int lineIdx,
Debugger dbg)
Create a
LineBreakpoint on a line in the current tab. |
LineBreakpoint(LineID line,
Debugger dbg)
Create a
LineBreakpoint. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
attach()
Attach this breakpoint to the VM.
|
void |
classLoaded(com.sun.jdi.ReferenceType theClass)
Event handler called when a class is loaded in the debugger.
|
protected String |
className()
Get the name of the class this breakpoint belongs to.
|
protected void |
detach()
Detach this breakpoint from the VM.
|
boolean |
isOnLine(LineID testLine)
Test if this breakpoint is on a certain line.
|
LineID |
lineID()
Get the line id this breakpoint is on.
|
void |
remove()
Remove this breakpoint.
|
protected void |
set()
Set this breakpoint.
|
String |
toString() |
protected Debugger dbg
protected LineID line
protected com.sun.jdi.request.BreakpointRequest bpr
protected com.sun.jdi.ReferenceType theClass
public LineBreakpoint(LineID line, Debugger dbg)
LineBreakpoint. If in a debug session, will try to
immediately set the breakpoint. If not in a debug session or the
corresponding class is not yet loaded the breakpoint will activate on
class load.line - the line id to create the breakpoint ondbg - the Debuggerpublic LineBreakpoint(int lineIdx,
Debugger dbg)
LineBreakpoint on a line in the current tab.lineIdx - the line index of the current tab to create the breakpoint
ondbg - the Debuggerpublic LineID lineID()
public boolean isOnLine(LineID testLine)
testLine - the line id to testprotected void attach()
BreakpointRequest. VM needs to be paused.protected void detach()
BreakpointRequest.protected void set()
attach().public void remove()
protected String className()
public void classLoaded(com.sun.jdi.ReferenceType theClass)
classLoaded in interface ClassLoadListenertheClass - the class that was just loaded.Copyright © 2001–2016 Processing Foundation. All rights reserved.