C# Class Rhino.Tools.Debugger.Dim

Dim or Debugger Implementation for Rhino.
Dim or Debugger Implementation for Rhino.
Afficher le fichier Open project: hazzik/Rhino.Net Class Usage Examples

Méthodes publiques

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

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

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

ClearAllBreakpoints() public méthode

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

CompileScript() public méthode

Compiles the given script.
Compiles the given script.
public CompileScript ( string url, string text ) : void
url string
text string
Résultat void

ContextSwitch() public méthode

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

CurrentContextData() public méthode

Returns the current ContextData object.
Returns the current ContextData object.
public CurrentContextData ( ) : Dim.ContextData
Résultat Dim.ContextData

Detach() public méthode

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

Dispose() public méthode

Releases resources associated with this debugger.
Releases resources associated with this debugger.
public Dispose ( ) : void
Résultat void

Eval() public méthode

Evaluates the given script.
Evaluates the given script.
public Eval ( string expr ) : string
expr string
Résultat string

EvalScript() public méthode

Evaluates the given script.
Evaluates the given script.
public EvalScript ( string url, string text ) : void
url string
text string
Résultat void

FunctionNames() public méthode

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

FunctionSourceByName() public méthode

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
Résultat Dim.FunctionSource

GetObjectIds() public méthode

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
Résultat object[]

GetObjectProperty() public méthode

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

Go() public méthode

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

ObjectToString() public méthode

Converts the given script object to a string.
Converts the given script object to a string.
public ObjectToString ( object @object ) : string
@object object
Résultat string

SetBreak() public méthode

Tells the debugger to break at the next opportunity.
Tells the debugger to break at the next opportunity.
public SetBreak ( ) : void
Résultat void

SetBreakOnEnter() public méthode

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

SetBreakOnExceptions() public méthode

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

SetBreakOnReturn() public méthode

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

SetGuiCallback() public méthode

Sets the GuiCallback object to use.
Sets the GuiCallback object to use.
public SetGuiCallback ( GuiCallback callback ) : void
callback GuiCallback
Résultat void

SetReturnValue() public méthode

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

SetScopeProvider() public méthode

Sets the ScopeProvider to be used.
Sets the ScopeProvider to be used.
public SetScopeProvider ( ScopeProvider scopeProvider ) : void
scopeProvider ScopeProvider
Résultat void

SetSourceProvider() public méthode

Sets the ScopeProvider to be used.
Sets the ScopeProvider to be used.
public SetSourceProvider ( SourceProvider sourceProvider ) : void
sourceProvider SourceProvider
Résultat void

SourceInfo() public méthode

Returns the SourceInfo object for the given URL.
Returns the SourceInfo object for the given URL.
public SourceInfo ( string url ) : Dim.SourceInfo
url string
Résultat Dim.SourceInfo

StringIsCompilableUnit() public méthode

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