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 ).
Show file Open project: hazzik/Rhino.Net

Public Methods

Method 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

Method 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 method

Attaches the debugger to the given Rhino.ContextFactory .
public AttachTo ( ContextFactory factory ) : void
factory ContextFactory
return void

ClearAllBreakpoints() public method

Removes all breakpoints.
Removes all breakpoints.
public ClearAllBreakpoints ( ) : void
return void

Detach() public method

Detaches from the current Rhino.ContextFactory .
public Detach ( ) : void
return void

Dispose() public method

Frees any resources held by the debugger.
Frees any resources held by the debugger.
public Dispose ( ) : void
return void

DoBreak() public method

Breaks execution of the script.
Breaks execution of the script.
public DoBreak ( ) : void
return void

GetDebugFrame() public method

Returns the debugger window Javax.Swing.JFrame .
public GetDebugFrame ( ) : JFrame
return JFrame

GetErr() public method

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

GetIn() public method

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

GetOut() public method

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

Go() public method

Resumes execution of the script.
Resumes execution of the script.
public Go ( ) : void
return void

IsVisible() public method

Returns whether the debugger GUI frame is visible.
Returns whether the debugger GUI frame is visible.
public IsVisible ( ) : bool
return bool

Main() public static method

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
return void

MainEmbedded() public static method

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
return Program

MainEmbedded() public static method

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
return Program

MainEmbedded() public static method

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
return Program

Pack() public method

Packs the debugger GUI frame.
Packs the debugger GUI frame.
public Pack ( ) : void
return void

Program() public method

Creates a new Main.
Creates a new Main.
public Program ( string title ) : System
title string
return System

SetBreakOnEnter() public method

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
return void

SetBreakOnExceptions() public method

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
return void

SetBreakOnReturn() public method

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
return void

SetExitAction() public method

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
return void

SetScope() public method

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
return void

SetScopeProvider() public method

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

SetSize() public method

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

SetSourceProvider() public method

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

SetVisible() public method

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