C# Class Rhino.Tools.Debugger.Dim

Dim or Debugger Implementation for Rhino.
Dim or Debugger Implementation for Rhino.
ファイルを表示 Open project: hazzik/Rhino.Net Class Usage Examples

Public Methods

Method Description
AttachTo ( ContextFactory factory ) : void

Attaches the debugger to the given ContextFactory.

Attaches the debugger to the given ContextFactory.

ClearAllBreakpoints ( ) : void

Clears all breakpoints.

Clears all breakpoints.

CompileScript ( string url, string text ) : void

Compiles the given script.

Compiles the given script.

ContextSwitch ( int frameIndex ) : void

Switches context to the stack frame with the given index.

Switches context to the stack frame with the given index.

CurrentContextData ( ) : Dim.ContextData

Returns the current ContextData object.

Returns the current ContextData object.

Detach ( ) : void

Detaches the debugger from the current ContextFactory.

Detaches the debugger from the current ContextFactory.

Dispose ( ) : void

Releases resources associated with this debugger.

Releases resources associated with this debugger.

Eval ( string expr ) : string

Evaluates the given script.

Evaluates the given script.

EvalScript ( string url, string text ) : void

Evaluates the given script.

Evaluates the given script.

FunctionNames ( ) : string[]

Returns an array of all function names.

Returns an array of all function names.

FunctionSourceByName ( string functionName ) : Dim.FunctionSource

Returns the FunctionSource object for the function with the given name.

Returns the FunctionSource object for the function with the given name.

GetObjectIds ( object @object ) : object[]

Returns an array of the property names on the given script object.

Returns an array of the property names on the given script object.

GetObjectProperty ( object @object, object id ) : object

Returns the value of a property on the given script object.

Returns the value of a property on the given script object.

Go ( ) : void

Resumes execution of script.

Resumes execution of script.

ObjectToString ( object @object ) : string

Converts the given script object to a string.

Converts the given script object to a string.

SetBreak ( ) : void

Tells the debugger to break at the next opportunity.

Tells the debugger to break at the next opportunity.

SetBreakOnEnter ( bool breakOnEnter ) : void

Sets whether the debugger should break on function entering.

Sets whether the debugger should break on function entering.

SetBreakOnExceptions ( bool breakOnExceptions ) : void

Sets whether the debugger should break on exceptions.

Sets whether the debugger should break on exceptions.

SetBreakOnReturn ( bool breakOnReturn ) : void

Sets whether the debugger should break on function return.

Sets whether the debugger should break on function return.

SetGuiCallback ( GuiCallback callback ) : void

Sets the GuiCallback object to use.

Sets the GuiCallback object to use.

SetReturnValue ( int returnValue ) : void

Sets the action to perform to end interruption.

Sets the action to perform to end interruption.

SetScopeProvider ( ScopeProvider scopeProvider ) : void

Sets the ScopeProvider to be used.

Sets the ScopeProvider to be used.

SetSourceProvider ( SourceProvider sourceProvider ) : void

Sets the ScopeProvider to be used.

Sets the ScopeProvider to be used.

SourceInfo ( string url ) : Dim.SourceInfo

Returns the SourceInfo object for the given URL.

Returns the SourceInfo object for the given URL.

StringIsCompilableUnit ( string str ) : bool

Returns whether the given string is syntactically valid script.

Returns whether the given string is syntactically valid script.

Private Methods

Method Description
CollectFunctions_r ( DebuggableScript function, ObjArray array ) : void

Helper function for GetAllFunctions(Rhino.Debug.DebuggableScript) .

Do_eval ( Context cx, Dim frame, string expr ) : string

Evaluates script in the given stack frame.

Evaluates script in the given stack frame.

FunctionSource ( DebuggableScript fnOrScript ) : Dim.FunctionSource

Returns the FunctionSource object for the given function or script.

Returns the FunctionSource object for the given function or script.

GetAllFunctions ( DebuggableScript function ) : DebuggableScript[]

Returns an array of all functions in the given script.

Returns an array of all functions in the given script.

GetFunctionSource ( DebuggableScript fnOrScript ) : Dim.FunctionSource

Returns the FunctionSource object for the given script or function.

Returns the FunctionSource object for the given script or function.

GetNormalizedUrl ( DebuggableScript fnOrScript ) : string

Returns the source URL for the given script or function.

Returns the source URL for the given script or function.

GetObjectIdsImpl ( Context cx, object @object ) : object[]

Returns an array of the property names on the given script object.

Returns an array of the property names on the given script object.

GetObjectPropertyImpl ( Context cx, object @object, object id ) : object

Returns the value of a property on the given script object.

Returns the value of a property on the given script object.

HandleBreakpointHit ( Dim frame, Context cx ) : void

Called when a breakpoint has been hit.

Called when a breakpoint has been hit.

HandleExceptionThrown ( Context cx, Exception ex, Dim frame ) : void

Called when a script exception has been thrown.

Called when a script exception has been thrown.

Interrupted ( Context cx, Dim frame, Exception scriptException ) : void

Interrupts script execution.

Interrupts script execution.

LoadSource ( string sourceUrl ) : string

Loads the script at the given URL.

Loads the script at the given URL.

RegisterTopScript ( DebuggableScript topScript, string source ) : void

Registers the given script as a top-level script in the debugger.

Registers the given script as a top-level script in the debugger.

Method Details

AttachTo() public method

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

ClearAllBreakpoints() public method

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

CompileScript() public method

Compiles the given script.
Compiles the given script.
public CompileScript ( string url, string text ) : void
url string
text string
return void

ContextSwitch() public method

Switches context to the stack frame with the given index.
Switches context to the stack frame with the given index.
public ContextSwitch ( int frameIndex ) : void
frameIndex int
return void

CurrentContextData() public method

Returns the current ContextData object.
Returns the current ContextData object.
public CurrentContextData ( ) : Dim.ContextData
return Dim.ContextData

Detach() public method

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

Dispose() public method

Releases resources associated with this debugger.
Releases resources associated with this debugger.
public Dispose ( ) : void
return void

Eval() public method

Evaluates the given script.
Evaluates the given script.
public Eval ( string expr ) : string
expr string
return string

EvalScript() public method

Evaluates the given script.
Evaluates the given script.
public EvalScript ( string url, string text ) : void
url string
text string
return void

FunctionNames() public method

Returns an array of all function names.
Returns an array of all function names.
public FunctionNames ( ) : string[]
return string[]

FunctionSourceByName() public method

Returns the FunctionSource object for the function with the given name.
Returns the FunctionSource object for the function with the given name.
public FunctionSourceByName ( string functionName ) : Dim.FunctionSource
functionName string
return Dim.FunctionSource

GetObjectIds() public method

Returns an array of the property names on the given script object.
Returns an array of the property names on the given script object.
public GetObjectIds ( object @object ) : object[]
@object object
return object[]

GetObjectProperty() public method

Returns the value of a property on the given script object.
Returns the value of a property on the given script object.
public GetObjectProperty ( object @object, object id ) : object
@object object
id object
return object

Go() public method

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

ObjectToString() public method

Converts the given script object to a string.
Converts the given script object to a string.
public ObjectToString ( object @object ) : string
@object object
return string

SetBreak() public method

Tells the debugger to break at the next opportunity.
Tells the debugger to break at the next opportunity.
public SetBreak ( ) : void
return void

SetBreakOnEnter() public method

Sets whether the debugger should break on function entering.
Sets whether the debugger should break on function entering.
public SetBreakOnEnter ( bool breakOnEnter ) : void
breakOnEnter bool
return void

SetBreakOnExceptions() public method

Sets whether the debugger should break on exceptions.
Sets whether the debugger should break on exceptions.
public SetBreakOnExceptions ( bool breakOnExceptions ) : void
breakOnExceptions bool
return void

SetBreakOnReturn() public method

Sets whether the debugger should break on function return.
Sets whether the debugger should break on function return.
public SetBreakOnReturn ( bool breakOnReturn ) : void
breakOnReturn bool
return void

SetGuiCallback() public method

Sets the GuiCallback object to use.
Sets the GuiCallback object to use.
public SetGuiCallback ( GuiCallback callback ) : void
callback GuiCallback
return void

SetReturnValue() public method

Sets the action to perform to end interruption.
Sets the action to perform to end interruption.
public SetReturnValue ( int returnValue ) : void
returnValue int
return void

SetScopeProvider() public method

Sets the ScopeProvider to be used.
Sets the ScopeProvider to be used.
public SetScopeProvider ( ScopeProvider scopeProvider ) : void
scopeProvider ScopeProvider
return void

SetSourceProvider() public method

Sets the ScopeProvider to be used.
Sets the ScopeProvider to be used.
public SetSourceProvider ( SourceProvider sourceProvider ) : void
sourceProvider SourceProvider
return void

SourceInfo() public method

Returns the SourceInfo object for the given URL.
Returns the SourceInfo object for the given URL.
public SourceInfo ( string url ) : Dim.SourceInfo
url string
return Dim.SourceInfo

StringIsCompilableUnit() public method

Returns whether the given string is syntactically valid script.
Returns whether the given string is syntactically valid script.
public StringIsCompilableUnit ( string str ) : bool
str string
return bool