C# Класс Rhino.Tools.Debugger.Program

Rhino script debugger main class.
Rhino script debugger main class. This class links together a debugger object ( Dim ) and a debugger GUI object ( SwingGui ).
Показать файл Открыть проект

Открытые методы

Метод Описание
AttachTo ( ContextFactory factory ) : void

Attaches the debugger to the given Rhino.ContextFactory .

ClearAllBreakpoints ( ) : void

Removes all breakpoints.

Removes all breakpoints.

Detach ( ) : void

Detaches from the current Rhino.ContextFactory .

Dispose ( ) : void

Frees any resources held by the debugger.

Frees any resources held by the debugger.

DoBreak ( ) : void

Breaks execution of the script.

Breaks execution of the script.

GetDebugFrame ( ) : JFrame

Returns the debugger window Javax.Swing.JFrame .

GetErr ( ) : TextWriter

Returns a System.IO.TextWriter for stderr in the Debugger's internal Console window.

GetIn ( ) : Stream

Returns an System.IO.Stream for stdin from the debugger's internal Console window.

GetOut ( ) : TextWriter

Returns a System.IO.TextWriter for stdout to the debugger's internal Console window.

Go ( ) : void

Resumes execution of the script.

Resumes execution of the script.

IsVisible ( ) : bool

Returns whether the debugger GUI frame is visible.

Returns whether the debugger GUI frame is visible.

Main ( string args ) : void

Main entry point.

Main entry point. Creates a debugger attached to a Rhino Rhino.Tools.Shell.Program shell session.

MainEmbedded ( ContextFactory factory, ScopeProvider scopeProvider, string title ) : Program

Entry point for embedded applications.

Entry point for embedded applications. This method attaches to the given Rhino.ContextFactory with the given scope. No I/O redirection is performed as with Main(string[]) .

MainEmbedded ( ContextFactory factory, Scriptable scope, string title ) : Program

Entry point for embedded applications.

Entry point for embedded applications. This method attaches to the given Rhino.ContextFactory with the given scope. No I/O redirection is performed as with Main(string[]) .

MainEmbedded ( string title ) : Program

Entry point for embedded applications.

Entry point for embedded applications. This method attaches to the global Rhino.ContextFactory with a scope of a newly created Rhino.Tools.Shell.Global object. No I/O redirection is performed as with Main(string[]) .

Pack ( ) : void

Packs the debugger GUI frame.

Packs the debugger GUI frame.

Program ( string title ) : System

Creates a new Main.

Creates a new Main.

SetBreakOnEnter ( bool value ) : void

Sets whether execution should break when a function is entered.

Sets whether execution should break when a function is entered.

SetBreakOnExceptions ( bool value ) : void

Sets whether execution should break when a script exception is thrown.

Sets whether execution should break when a script exception is thrown.

SetBreakOnReturn ( bool value ) : void

Sets whether execution should break when a function is left.

Sets whether execution should break when a function is left.

SetExitAction ( Runnable r ) : void

Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window.

Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window.

SetScope ( Scriptable scope ) : void

Sets the scope to be used for script evaluation.

Sets the scope to be used for script evaluation.

SetScopeProvider ( ScopeProvider p ) : void

Sets the ScopeProvider that provides a scope to be used for script evaluation.

SetSize ( int w, int h ) : void

Sets the debugger GUI frame dimensions.

Sets the debugger GUI frame dimensions.

SetSourceProvider ( SourceProvider sourceProvider ) : void

Sets the SourceProvider that provides the source to be displayed for script evaluation.

SetVisible ( bool flag ) : void

Sets the visibility of the debugger GUI frame.

Sets the visibility of the debugger GUI frame.

Приватные методы

Метод Описание
ContextCreated ( Context cx ) : void
ContextEntered ( Context cx ) : void
ContextExited ( Context cx ) : void
ContextReleased ( Context cx ) : void
MainEmbeddedImpl ( ContextFactory factory, object scopeProvider, string title ) : Program

Helper method for MainEmbedded(string) , etc.

SetOptimizationLevel ( int level ) : void
SetSize ( Dimension dimension ) : void

Описание методов

AttachTo() публичный Метод

Attaches the debugger to the given Rhino.ContextFactory .
public AttachTo ( ContextFactory factory ) : void
factory ContextFactory
Результат void

ClearAllBreakpoints() публичный Метод

Removes all breakpoints.
Removes all breakpoints.
public ClearAllBreakpoints ( ) : void
Результат void

Detach() публичный Метод

Detaches from the current Rhino.ContextFactory .
public Detach ( ) : void
Результат void

Dispose() публичный Метод

Frees any resources held by the debugger.
Frees any resources held by the debugger.
public Dispose ( ) : void
Результат void

DoBreak() публичный Метод

Breaks execution of the script.
Breaks execution of the script.
public DoBreak ( ) : void
Результат void

GetDebugFrame() публичный Метод

Returns the debugger window Javax.Swing.JFrame .
public GetDebugFrame ( ) : JFrame
Результат JFrame

GetErr() публичный Метод

Returns a System.IO.TextWriter for stderr in the Debugger's internal Console window.
public GetErr ( ) : TextWriter
Результат System.IO.TextWriter

GetIn() публичный Метод

Returns an System.IO.Stream for stdin from the debugger's internal Console window.
public GetIn ( ) : Stream
Результат Stream

GetOut() публичный Метод

Returns a System.IO.TextWriter for stdout to the debugger's internal Console window.
public GetOut ( ) : TextWriter
Результат System.IO.TextWriter

Go() публичный Метод

Resumes execution of the script.
Resumes execution of the script.
public Go ( ) : void
Результат void

IsVisible() публичный Метод

Returns whether the debugger GUI frame is visible.
Returns whether the debugger GUI frame is visible.
public IsVisible ( ) : bool
Результат bool

Main() публичный статический Метод

Main entry point.
Main entry point. Creates a debugger attached to a Rhino Rhino.Tools.Shell.Program shell session.
public static Main ( string args ) : void
args string
Результат void

MainEmbedded() публичный статический Метод

Entry point for embedded applications.
Entry point for embedded applications. This method attaches to the given Rhino.ContextFactory with the given scope. No I/O redirection is performed as with Main(string[]) .
public static MainEmbedded ( ContextFactory factory, ScopeProvider scopeProvider, string title ) : Program
factory ContextFactory
scopeProvider ScopeProvider
title string
Результат Program

MainEmbedded() публичный статический Метод

Entry point for embedded applications.
Entry point for embedded applications. This method attaches to the given Rhino.ContextFactory with the given scope. No I/O redirection is performed as with Main(string[]) .
public static MainEmbedded ( ContextFactory factory, Scriptable scope, string title ) : Program
factory ContextFactory
scope Scriptable
title string
Результат Program

MainEmbedded() публичный статический Метод

Entry point for embedded applications.
Entry point for embedded applications. This method attaches to the global Rhino.ContextFactory with a scope of a newly created Rhino.Tools.Shell.Global object. No I/O redirection is performed as with Main(string[]) .
public static MainEmbedded ( string title ) : Program
title string
Результат Program

Pack() публичный Метод

Packs the debugger GUI frame.
Packs the debugger GUI frame.
public Pack ( ) : void
Результат void

Program() публичный Метод

Creates a new Main.
Creates a new Main.
public Program ( string title ) : System
title string
Результат System

SetBreakOnEnter() публичный Метод

Sets whether execution should break when a function is entered.
Sets whether execution should break when a function is entered.
public SetBreakOnEnter ( bool value ) : void
value bool
Результат void

SetBreakOnExceptions() публичный Метод

Sets whether execution should break when a script exception is thrown.
Sets whether execution should break when a script exception is thrown.
public SetBreakOnExceptions ( bool value ) : void
value bool
Результат void

SetBreakOnReturn() публичный Метод

Sets whether execution should break when a function is left.
Sets whether execution should break when a function is left.
public SetBreakOnReturn ( bool value ) : void
value bool
Результат void

SetExitAction() публичный Метод

Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window.
Assign a Runnable object that will be invoked when the user selects "Exit..." or closes the Debugger main window.
public SetExitAction ( Runnable r ) : void
r Runnable
Результат void

SetScope() публичный Метод

Sets the scope to be used for script evaluation.
Sets the scope to be used for script evaluation.
public SetScope ( Scriptable scope ) : void
scope Scriptable
Результат void

SetScopeProvider() публичный Метод

Sets the ScopeProvider that provides a scope to be used for script evaluation.
public SetScopeProvider ( ScopeProvider p ) : void
p ScopeProvider
Результат void

SetSize() публичный Метод

Sets the debugger GUI frame dimensions.
Sets the debugger GUI frame dimensions.
public SetSize ( int w, int h ) : void
w int
h int
Результат void

SetSourceProvider() публичный Метод

Sets the SourceProvider that provides the source to be displayed for script evaluation.
public SetSourceProvider ( SourceProvider sourceProvider ) : void
sourceProvider SourceProvider
Результат void

SetVisible() публичный Метод

Sets the visibility of the debugger GUI frame.
Sets the visibility of the debugger GUI frame.
public SetVisible ( bool flag ) : void
flag bool
Результат void