IScriptDebugProvider

Overview

The IScriptDebugProvider interface represents an object that is able to provide information needed for the script debuggger. This interface is implemented by the EcmaScriptProvider class.

The script debugger attaches itself to the events exposed by an object implementing this interface and uses interface methods to control script execution.

Location


 

Continue

Continues script execution after it has been paused.

 

method Continue

 

void Continue()

 

Sub Continue()

DebugFrameEnter

This event is raised when new script scope (for example script method) is entered.

 

event DebugFrameEnter: EventHandler<ScriptFrameEnterEventArgs>;

 

delegate EventHandler<ScriptFrameEnterEventArgs> DebugFrameEnter()

 

Event DebugFrameEnter As EventHandler<ScriptFrameEnterEventArgs>

DebugFrameExit

This event is raised when current script scope (for example script method) is exited.

 

event DebugFrameExit: EventHandler<ScriptFrameExitEventArgs>;

 

delegate EventHandler<ScriptFrameExitEventArgs> DebugFrameExit()

 

Event DebugFrameExit As EventHandler<ScriptFrameExitEventArgs>

DebugLog

This event is raised when the script method log is executed.

 

event DebugLog: EventHandler<ScriptLogEventArgs>;

 

delegate EventHandler<ScriptLogEventArgs> DebugLog()

 

Event DebugLog As EventHandler<ScriptLogEventArgs>

DebugMode

Gets or sets the current debugger mode. Available debug modes are

{| class="dashed-table" style="width: 100%" ! style="width: 30% " |

Debug Mode
! style="width: 70% " |
Description
|- | None | No debug info is provided. This is the recommended mode for production servers due to its performance. |- | Continuous | Full debug info is generated. Script execution performance is degraded significantly. Script execution pauses only on the stop keyword or when an unhandled exception occurrs. |- | Step By Step | Script execution pauses after each script line execution. |- |}

 

property DebugMode: ScriptDebugMode read write;

 

ScriptDebugMode DebugMode { get; set; }

 

Property DebugMode() As ScriptDebugMode

DebugTracePoint

This event is raised on every script line execution.

 

event DebugTracePoint: EventHandler<ScriptTracePointEventArgs>;

 

delegate EventHandler<ScriptTracePointEventArgs> DebugTracePoint()

 

Event DebugTracePoint As EventHandler<ScriptTracePointEventArgs>

DebugUnhandledException

This event is raised when an unhandled exception occurs during the script execution.

 

event DebugUnhandledException: EventHandler<ScriptUnhandledExceptionEventArgs>;

 

delegate EventHandler<ScriptUnhandledExceptionEventArgs> DebugUnhandledException()

 

Event DebugUnhandledException As EventHandler<ScriptUnhandledExceptionEventArgs>

StepInto

Steps into a method.

 

method StepInto

 

void StepInto()

 

Sub StepInto()

StepOut

Steps out from the current script method. Script execution will be paused again after workflow exit from the current script.

 

method StepOut

 

void StepOut()

 

Sub StepOut()

StepOver

Steps over the current script line.

 

method StepOver

 

void StepOver()

 

Sub StepOver()

Stop

Breaks script execution.

 

method Stop

 

void Stop()

 

Sub Stop()

 

DebugMode

Gets or sets the current debugger mode. Available debug modes are

{| class="dashed-table" style="width: 100%" ! style="width: 30% " |

Debug Mode
! style="width: 70% " |
Description
|- | None | No debug info is provided. This is the recommended mode for production servers due to its performance. |- | Continuous | Full debug info is generated. Script execution performance is degraded significantly. Script execution pauses only on the stop keyword or when an unhandled exception occurrs. |- | Step By Step | Script execution pauses after each script line execution. |- |}

 

property DebugMode: ScriptDebugMode read write;

 

ScriptDebugMode DebugMode { get; set; }

 

Property DebugMode() As ScriptDebugMode

 

Continue

Continues script execution after it has been paused.

 

method Continue

 

void Continue()

 

Sub Continue()

StepInto

Steps into a method.

 

method StepInto

 

void StepInto()

 

Sub StepInto()

StepOut

Steps out from the current script method. Script execution will be paused again after workflow exit from the current script.

 

method StepOut

 

void StepOut()

 

Sub StepOut()

StepOver

Steps over the current script line.

 

method StepOver

 

void StepOver()

 

Sub StepOver()

Stop

Breaks script execution.

 

method Stop

 

void Stop()

 

Sub Stop()

 

DebugFrameEnter

This event is raised when new script scope (for example script method) is entered.

 

event DebugFrameEnter: EventHandler<ScriptFrameEnterEventArgs>;

 

delegate EventHandler<ScriptFrameEnterEventArgs> DebugFrameEnter()

 

Event DebugFrameEnter As EventHandler<ScriptFrameEnterEventArgs>

DebugFrameExit

This event is raised when current script scope (for example script method) is exited.

 

event DebugFrameExit: EventHandler<ScriptFrameExitEventArgs>;

 

delegate EventHandler<ScriptFrameExitEventArgs> DebugFrameExit()

 

Event DebugFrameExit As EventHandler<ScriptFrameExitEventArgs>

DebugLog

This event is raised when the script method log is executed.

 

event DebugLog: EventHandler<ScriptLogEventArgs>;

 

delegate EventHandler<ScriptLogEventArgs> DebugLog()

 

Event DebugLog As EventHandler<ScriptLogEventArgs>

DebugTracePoint

This event is raised on every script line execution.

 

event DebugTracePoint: EventHandler<ScriptTracePointEventArgs>;

 

delegate EventHandler<ScriptTracePointEventArgs> DebugTracePoint()

 

Event DebugTracePoint As EventHandler<ScriptTracePointEventArgs>

DebugUnhandledException

This event is raised when an unhandled exception occurs during the script execution.

 

event DebugUnhandledException: EventHandler<ScriptUnhandledExceptionEventArgs>;

 

delegate EventHandler<ScriptUnhandledExceptionEventArgs> DebugUnhandledException()

 

Event DebugUnhandledException As EventHandler<ScriptUnhandledExceptionEventArgs>