C# Class 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 ).
Afficher le fichier Open project: hazzik/Rhino.Net

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

AttachTo() public méthode

Attaches the debugger to the given Rhino.ContextFactory .
public AttachTo ( ContextFactory factory ) : void
factory ContextFactory
Résultat void

ClearAllBreakpoints() public méthode

Removes all breakpoints.
Removes all breakpoints.
public ClearAllBreakpoints ( ) : void
Résultat void

Detach() public méthode

Detaches from the current Rhino.ContextFactory .
public Detach ( ) : void
Résultat void

Dispose() public méthode

Frees any resources held by the debugger.
Frees any resources held by the debugger.
public Dispose ( ) : void
Résultat void

DoBreak() public méthode

Breaks execution of the script.
Breaks execution of the script.
public DoBreak ( ) : void
Résultat void

GetDebugFrame() public méthode

Returns the debugger window Javax.Swing.JFrame .
public GetDebugFrame ( ) : JFrame
Résultat JFrame

GetErr() public méthode

Returns a System.IO.TextWriter for stderr in the Debugger's internal Console window.
public GetErr ( ) : TextWriter
Résultat System.IO.TextWriter

GetIn() public méthode

Returns an System.IO.Stream for stdin from the debugger's internal Console window.
public GetIn ( ) : Stream
Résultat Stream

GetOut() public méthode

Returns a System.IO.TextWriter for stdout to the debugger's internal Console window.
public GetOut ( ) : TextWriter
Résultat System.IO.TextWriter

Go() public méthode

Resumes execution of the script.
Resumes execution of the script.
public Go ( ) : void
Résultat void

IsVisible() public méthode

Returns whether the debugger GUI frame is visible.
Returns whether the debugger GUI frame is visible.
public IsVisible ( ) : bool
Résultat bool

Main() public static méthode

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
Résultat void

MainEmbedded() public static méthode

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
Résultat Program

MainEmbedded() public static méthode

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
Résultat Program

MainEmbedded() public static méthode

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
Résultat Program

Pack() public méthode

Packs the debugger GUI frame.
Packs the debugger GUI frame.
public Pack ( ) : void
Résultat void

Program() public méthode

Creates a new Main.
Creates a new Main.
public Program ( string title ) : System
title string
Résultat System

SetBreakOnEnter() public méthode

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
Résultat void

SetBreakOnExceptions() public méthode

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
Résultat void

SetBreakOnReturn() public méthode

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
Résultat void

SetExitAction() public méthode

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
Résultat void

SetScope() public méthode

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
Résultat void

SetScopeProvider() public méthode

Sets the ScopeProvider that provides a scope to be used for script evaluation.
public SetScopeProvider ( ScopeProvider p ) : void
p ScopeProvider
Résultat void

SetSize() public méthode

Sets the debugger GUI frame dimensions.
Sets the debugger GUI frame dimensions.
public SetSize ( int w, int h ) : void
w int
h int
Résultat void

SetSourceProvider() public méthode

Sets the SourceProvider that provides the source to be displayed for script evaluation.
public SetSourceProvider ( SourceProvider sourceProvider ) : void
sourceProvider SourceProvider
Résultat void

SetVisible() public méthode

Sets the visibility of the debugger GUI frame.
Sets the visibility of the debugger GUI frame.
public SetVisible ( bool flag ) : void
flag bool
Résultat void