org.apache.bsf.debug.meta
Class DebugManagerStub
- BSFDebugManager, Remote, RemoteService
public class DebugManagerStub
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.
- getLangFromFilename in interface BSFDebugManager
- 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.
- isLanguageRegistered in interface BSFDebugManager
lang
- string identifying a language
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.
- placeBreakpointAtLine in interface BSFDebugManager
registerDebugger
public void registerDebugger(String lang,
BSFDebugger debugger)
throws RemoteException
Register a debugger for a scripting engine.
- registerDebugger in interface BSFDebugManager
lang
- string identifying language
removeBreakpoint
public void removeBreakpoint(String docname,
int bpid)
throws RemoteException
Allows to remove a breakpoint.
- removeBreakpoint in interface BSFDebugManager
sendQuitNotice
public void sendQuitNotice()
throws RemoteException
setEntryExit
public void setEntryExit(String docname,
boolean on)
throws RemoteException
Allows setting entry/exit mode
- setEntryExit in interface BSFDebugManager
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.
- supportBreakpointAtOffset in interface BSFDebugManager