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

Dim or Debugger Implementation for Rhino.
Dim or Debugger Implementation for Rhino.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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.

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

Метод Описание
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.

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

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

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

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

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

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

Compiles the given script.
Compiles the given script.
public CompileScript ( string url, string text ) : void
url string
text string
Результат void

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

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
Результат void

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

Returns the current ContextData object.
Returns the current ContextData object.
public CurrentContextData ( ) : Dim.ContextData
Результат Dim.ContextData

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

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

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

Releases resources associated with this debugger.
Releases resources associated with this debugger.
public Dispose ( ) : void
Результат void

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

Evaluates the given script.
Evaluates the given script.
public Eval ( string expr ) : string
expr string
Результат string

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

Evaluates the given script.
Evaluates the given script.
public EvalScript ( string url, string text ) : void
url string
text string
Результат void

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

Returns an array of all function names.
Returns an array of all function names.
public FunctionNames ( ) : string[]
Результат string[]

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

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
Результат Dim.FunctionSource

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

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
Результат object[]

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

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
Результат object

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

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

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

Converts the given script object to a string.
Converts the given script object to a string.
public ObjectToString ( object @object ) : string
@object object
Результат string

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

Tells the debugger to break at the next opportunity.
Tells the debugger to break at the next opportunity.
public SetBreak ( ) : void
Результат void

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

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
Результат void

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

Sets whether the debugger should break on exceptions.
Sets whether the debugger should break on exceptions.
public SetBreakOnExceptions ( bool breakOnExceptions ) : void
breakOnExceptions bool
Результат void

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

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
Результат void

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

Sets the GuiCallback object to use.
Sets the GuiCallback object to use.
public SetGuiCallback ( GuiCallback callback ) : void
callback GuiCallback
Результат void

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

Sets the action to perform to end interruption.
Sets the action to perform to end interruption.
public SetReturnValue ( int returnValue ) : void
returnValue int
Результат void

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

Sets the ScopeProvider to be used.
Sets the ScopeProvider to be used.
public SetScopeProvider ( ScopeProvider scopeProvider ) : void
scopeProvider ScopeProvider
Результат void

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

Sets the ScopeProvider to be used.
Sets the ScopeProvider to be used.
public SetSourceProvider ( SourceProvider sourceProvider ) : void
sourceProvider SourceProvider
Результат void

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

Returns the SourceInfo object for the given URL.
Returns the SourceInfo object for the given URL.
public SourceInfo ( string url ) : Dim.SourceInfo
url string
Результат Dim.SourceInfo

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

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
Результат bool