org.apache.bsf.debug.meta
Class DebugManagerStub
- BSFDebugManager, Remote, RemoteService
public class DebugManagerStub
implements BSFDebugManager
Init , addListener , completeFuture , createFuture , equals , getConnection , getTid , getUid , removeListener , revokeFuture , revoked , suspendFuture , swizzle |
fEngines
protected Vector fEngines
DebugManagerStub
public DebugManagerStub(SocketConnection con)
throws IOException
disconnectNotify
public void disconnectNotify(Exception ex)
A communication error occured, simply disconnect
and therefore clean everything up.
getLangFromFilename
public String getLangFromFilename(String fileName)
throws RemoteException
Determine the language of a script file by looking at the file
extension.
- the scripting language the file is in if the file extension
is known to me (must have been registered via
registerScriptingEngine).
isLanguageRegistered
public boolean isLanguageRegistered(String lang)
throws RemoteException
Determine whether a language is registered.
lang
- string identifying a language
- true iff it is
placeBreakpointAtLine
public void placeBreakpointAtLine(int bpid,
String docname,
int lineno)
throws RemoteException
Breakpoints are placed within documents either at a specific line
or offset. While breakpoints can be set at lines and offsets in
the same document, there is no conversions between lines and offsets.
Some engines may support only offsets or only lines and therefore
some breakpoints may be ignored.
Placing a breakpoint is local to a debugger connection.
In other words, breakpoints set by other debuggers are not visible
to a given debugger.
Breakpoints are given identifiers so to make easier for debuggers
to manipulate breakpoints. Identifiers are allocated by the debugger;
they must be unique for the entire session between that debugger
and the debug manager.
placeBreakpointAtOffset
public void placeBreakpointAtOffset(int bpid,
String docname,
int offset)
throws RemoteException
registerDebugger
public void registerDebugger(String lang,
BSFDebugger debugger)
throws RemoteException
Register a debugger for a scripting engine.
lang
- string identifying language
removeBreakpoint
public void removeBreakpoint(String docname,
int bpid)
throws RemoteException
Allows to remove a breakpoint.
sendQuitNotice
public void sendQuitNotice()
throws RemoteException
setEntryExit
public void setEntryExit(String docname,
boolean on)
throws RemoteException
Allows setting entry/exit mode
supportBreakpointAtLine
public boolean supportBreakpointAtLine(String lang)
throws RemoteException
supportBreakpointAtOffset
public boolean supportBreakpointAtOffset(String lang)
throws RemoteException
Allows a debugger to ask if the engine for a given language
will support either line or offset breakpoints.
Note: this will most likely provoke the loading of the engine.
unregisterDebugger
public void unregisterDebugger(String lang)
throws RemoteException