public class LineBreakpoint extends Object implements ClassLoadListener
DebugEditor).| Modifier and Type | Field and Description |
|---|---|
protected com.sun.jdi.request.BreakpointRequest |
bpr |
protected String |
className |
protected Debugger |
dbg |
protected LineID |
line |
| 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 boolean |
attach(com.sun.jdi.ReferenceType theClass)
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.
|
void |
detach()
Detach this breakpoint from the VM.
|
protected boolean |
isAttached() |
boolean |
isOnLine(LineID testLine)
Test if this breakpoint is on a certain line.
|
LineID |
lineID()
Get the line id this breakpoint is on.
|
static String |
parseTopLevelClassName(String name) |
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 String className
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 breakpointpublic LineID lineID()
public boolean isOnLine(LineID testLine)
testLine - the line id to testprotected boolean attach(com.sun.jdi.ReferenceType theClass)
BreakpointRequest. VM needs to be paused.theClass - class to attach toprotected boolean isAttached()
public 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–2017 Processing Foundation. All rights reserved.