• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    ScriptDebugger Class

    Definition

    Namespace: Alternet.Scripter.Debugger.TypeScript
    Assembly: Alternet.Scripter.TypeScript.Debugger.v8.dll

    Enables communication with a debugger.

    Inheritance
    Object
    ScriptDebugger
    Implements
    IScriptDebugger
    IScriptDebuggerBase
    Syntax
    public class ScriptDebugger : IScriptDebugger, IScriptDebuggerBase

    Constructors

    ScriptDebugger()

    Initializes a new instance of the ScriptDebugger class with default settings.

    Properties

    Breakpoints

    Returns collection of debugger breakpoints.

    Capabilities

    Gets debugger capabilities.

    EventsSyncAction

    Gets or sets an action used to synchronize events raising. This is normally a function provided by the application to sync raised debugger events (for example, perform Control.Invoke)

    ExpressionEvaluator

    Gets IExpressionEvaluator object used to evaluate expressions.

    IsStarted

    Indicates whether debugging was started.

    ScopeResolutionService

    Gets IExpressionEvaluator object used to evaluate expressions.

    ScriptRun

    Contains all information required to compile and run the script.

    State

    Gets current debugger state.

    Methods

    ActivateThread(Int32)

    Switches debugging to the specified thread.

    AddBreakpointAsync(Breakpoint)

    Adds a Breakpoint to the list.

    Break()

    Causes the given process to pause its execution so that its current state can be analyzed.

    ClearTemporaryGeneratedModules()

    Clears temporary generated modules on disk.

    Continue()

    Continues given process to the next breakpoint or until process finishes.

    EnableBreakpointAsync(Breakpoint, Boolean)

    Enables or disables specified breakpoint.

    EvaluateCurrentExceptionAsync(CancellationToken)

    Evaluates an expression based on the current stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.

    EvaluateExpressionAsync(ExpressionEvaluationRequest, CancellationToken)

    Evaluates an expression based on the current stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.

    EvaluateExpressionsAsync(IEnumerable<ExpressionEvaluationRequest>, CancellationToken)

    Evaluates an expression based on the current stack frame. If the expression can be parsed but not evaluated, an object is returned but will not contain a valid value.

    GetExecutionPositionAsync(CancellationToken)

    Finds out current ExecutionPosition based on the current stack frame.

    GetSessions(String)

    Retrieves list of ChromeSessionInfo asynchronously by given URL.

    GetStackFramesAsync(CancellationToken)

    Gets list of method calls that are currently on a stack.

    GetThreadsAsync(CancellationToken)
    GetVariablesInScopeAsync(CancellationToken)

    Receives all local variables based on the current stack frame.

    RaiseActiveThreadChanged(ActiveThreadChangedEventArgs)
    RaiseBeforeContinue()
    RaiseBeforeStep()
    RaiseBeforeStop()
    RaiseDebuggerErrorOccured(DebuggerErrorOccuredEventArgs)
    RaiseDebuggingStarted(DebuggingStartedEventArgs)
    RaiseDebuggingStopped(DebuggingStoppedEventArgs)
    RaiseExecutionResumed(ExecutionResumedEventArgs)
    RaiseExecutionStopped(ExecutionStoppedEventArgs)
    RaiseLogMessageReceived(LogMessageReceivedEventArgs)
    RaiseStackFrameSwitched(StackFrameSwitchedEventArgs)
    RaiseStateChanged(DebuggerStateChangedEventArgs)
    RemoveBreakpointAsync(Breakpoint)

    Removes a Breakpoint from the list.

    SetRunToPositionBreakpoint(RunToPositionBreakpoint)

    Causes debugger to stop at the specified position.

    StartDebugging()

    Starts executing the program from the entry point with default settings.

    StartDebugging(StartDebuggingOptions)

    Starts executing the program from the entry point with specified settings.

    StepInto()

    Executes one statement of code; steps into the next function call, if possible.

    StepOut()

    Executes one statement of code; steps out of the function currently being executed.

    StepOver()

    Executes one statement of code; steps over the next function call.

    StopDebuggingAsync(CancellationToken)

    Stops executing the program.

    SwitchToStackFrame(StackFrame)

    Switches debugging to the given stack frame.

    TrySetNextStatementAsync(Int32, CancellationToken)

    Tries to set the execution point to the specified line of code.

    Events

    ActiveThreadChanged

    Occurs when thread to be debugged changes.

    BeforeContinue

    Occurs before debugger continues to program execution.

    BeforeStep

    Occurs before debugger performs a step.

    BeforeStop

    Occurs before debugger stop debugging.

    DebuggerErrorOccured

    Occurs when encounters error during debugging session.

    DebuggingStarted

    Occurs when debugging session is started.

    DebuggingStopped

    Occurs when debugging session is stopped.

    ExecutionResumed

    Occurs when debugging is resumed after being paused.

    ExecutionStopped

    Occurs when debugging is paused.

    LogMessageReceived

    Occurs when debug message is received.

    SourceFileLocationResolve

    Occurs when source file location resolution is requested.

    StackFrameSwitched

    Occurs debugger switches to the stack frame.

    StateChanged

    Occurs when debugger state is changed.

    Explicit Interface Implementations

    IScriptDebuggerBase.ScriptRun
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()

    Implements

    IScriptDebugger
    IScriptDebuggerBase
    In This Article
    Back to top Copyright AlterNET Software Download PDF