public interface BSFDebugManager
extends java.rmi.Remote
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLangFromFilename(java.lang.String fileName)
Determine the language of a script file by looking at the file
extension.
|
boolean |
isLanguageRegistered(java.lang.String lang)
Determine whether a language is registered.
|
void |
placeBreakpointAtLine(int bpid,
java.lang.String docname,
int lineno)
Breakpoints are placed within documents either at a specific line
or offset.
|
void |
placeBreakpointAtOffset(int bpid,
java.lang.String docname,
int offset) |
void |
registerDebugger(java.lang.String lang,
BSFDebugger debugger)
Register a debugger for a scripting engine.
|
void |
removeBreakpoint(java.lang.String docname,
int brkptid)
Allows to remove a breakpoint.
|
void |
setEntryExit(java.lang.String docname,
boolean on)
Allows setting entry/exit mode
|
boolean |
supportBreakpointAtLine(java.lang.String lang) |
boolean |
supportBreakpointAtOffset(java.lang.String lang)
Allows a debugger to ask if the engine for a given language
will support either line or offset breakpoints.
|
void |
unregisterDebugger(java.lang.String lang) |
java.lang.String getLangFromFilename(java.lang.String fileName)
throws java.rmi.RemoteException
filename - the name of the fileBSFException - if file's extension is unknown.java.rmi.RemoteExceptionboolean isLanguageRegistered(java.lang.String lang)
throws java.rmi.RemoteException
lang - string identifying a languagejava.rmi.RemoteExceptionvoid placeBreakpointAtLine(int bpid,
java.lang.String docname,
int lineno)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid placeBreakpointAtOffset(int bpid,
java.lang.String docname,
int offset)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid removeBreakpoint(java.lang.String docname,
int brkptid)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid setEntryExit(java.lang.String docname,
boolean on)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean supportBreakpointAtOffset(java.lang.String lang)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionboolean supportBreakpointAtLine(java.lang.String lang)
throws java.rmi.RemoteException
java.rmi.RemoteExceptionvoid registerDebugger(java.lang.String lang,
BSFDebugger debugger)
throws java.rmi.RemoteException
lang - string identifying languagejava.rmi.RemoteException - if the language is unknown (i.e., if it
has not been registered) with a reason of
REASON_UNKNOWN_LANGUAGE. If the language is known but
if the interface can't be created for some reason, then
the reason is set to REASON_OTHER_ERROR and the actual
exception is passed on as well.void unregisterDebugger(java.lang.String lang)
throws java.rmi.RemoteException
java.rmi.RemoteException