oscript.data
Interface Debugger.Breakpoint

Enclosing interface:
Debugger

public static interface Debugger.Breakpoint

An interface to be implemented by a breakpoint handler. If a break- point is set for a particular file:lineno then when execution hits that particular file:lineno, the breakpoint handler will be invoked, and passed the current scope, which can be used to access variables, etc.


Method Summary
 Debugger.Breakpoint handle(Scope scope, AbstractFile file, int line)
          Called when breakpoint is hit.
 

Method Detail

handle

public Debugger.Breakpoint handle(Scope scope,
                                  AbstractFile file,
                                  int line)
Called when breakpoint is hit. The file and line are passed back to handler so that the same handler can be reused at many points.

Parameters:
scope - the current scope of execution
file - the current file
line - the current line
Returns:
step-breakpoint. If not null, this will be called at the next "step" in evaluating the program. This can be used to implement single-stepping.