Interface ScriptDebugging.DebuggerInstaller
-
- Enclosing class:
- ScriptDebugging
public static interface ScriptDebugging.DebuggerInstallerImplemented by classes that can install a script debugger. This is similar to a factory, but only one debugger can be installed at a time. This interface allows a debugger to be installed or uninstalled, and provides very high-level access to the debugger once installed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinstall()Called to start the debugging service.booleanisClientRunning()Returnstrueif the debugging client is currently running.voidprepareToEnterContext()Called before entering a thread context.voidpreprocessScript(java.lang.String location, java.lang.String scriptSource)Called to allow the debugger to process a script that has not been compiled or run yet, but that the user of the debugger might wish to have available (for example, to set breakpoints before the script is actually run).voidsetBreak()Set a breakpoint at the earliest opportunity.voidstartClient()Start or display the debug client window.voiduninstall()Called to stop the debugging service.
-
-
-
Method Detail
-
install
void install()
Called to start the debugging service.
-
uninstall
void uninstall()
Called to stop the debugging service.
-
preprocessScript
void preprocessScript(java.lang.String location, java.lang.String scriptSource)Called to allow the debugger to process a script that has not been compiled or run yet, but that the user of the debugger might wish to have available (for example, to set breakpoints before the script is actually run).- Parameters:
location- the file or other identifier for the scriptscriptSource- the source code for the script
-
prepareToEnterContext
void prepareToEnterContext()
Called before entering a thread context.
-
setBreak
void setBreak()
Set a breakpoint at the earliest opportunity. The effect of calling this when the matching debugger is not installed is undefined.
-
startClient
void startClient() throws java.io.IOExceptionStart or display the debug client window.- Throws:
java.io.IOException
-
isClientRunning
boolean isClientRunning()
Returnstrueif the debugging client is currently running.- Returns:
trueif the client is active
-
-