IScriptDebugProvider

Overview

The Interface 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

Implemented in

 

add_DebugFrameEnter

 

method add_DebugFrameEnter(value: EventHandler<ScriptFrameEnterEventArgs>)

 

void add_DebugFrameEnter(EventHandler<ScriptFrameEnterEventArgs> value)

 

Sub add_DebugFrameEnter(value As EventHandler<ScriptFrameEnterEventArgs>)

Parameters:

  • value:

add_DebugFrameExit

 

method add_DebugFrameExit(value: EventHandler<ScriptFrameExitEventArgs>)

 

void add_DebugFrameExit(EventHandler<ScriptFrameExitEventArgs> value)

 

Sub add_DebugFrameExit(value As EventHandler<ScriptFrameExitEventArgs>)

Parameters:

  • value:

add_DebugLog

 

method add_DebugLog(value: EventHandler<ScriptLogEventArgs>)

 

void add_DebugLog(EventHandler<ScriptLogEventArgs> value)

 

Sub add_DebugLog(value As EventHandler<ScriptLogEventArgs>)

Parameters:

  • value:

add_DebugTracePoint

 

method add_DebugTracePoint(value: EventHandler<ScriptTracePointEventArgs>)

 

void add_DebugTracePoint(EventHandler<ScriptTracePointEventArgs> value)

 

Sub add_DebugTracePoint(value As EventHandler<ScriptTracePointEventArgs>)

Parameters:

  • value:

add_DebugUnhandledException

 

method add_DebugUnhandledException(value: EventHandler<ScriptUnhandledExceptionEventArgs>)

 

void add_DebugUnhandledException(EventHandler<ScriptUnhandledExceptionEventArgs> value)

 

Sub add_DebugUnhandledException(value As EventHandler<ScriptUnhandledExceptionEventArgs>)

Parameters:

  • value:

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>

remove_DebugFrameEnter

 

method remove_DebugFrameEnter(value: EventHandler<ScriptFrameEnterEventArgs>)

 

void remove_DebugFrameEnter(EventHandler<ScriptFrameEnterEventArgs> value)

 

Sub remove_DebugFrameEnter(value As EventHandler<ScriptFrameEnterEventArgs>)

Parameters:

  • value:

remove_DebugFrameExit

 

method remove_DebugFrameExit(value: EventHandler<ScriptFrameExitEventArgs>)

 

void remove_DebugFrameExit(EventHandler<ScriptFrameExitEventArgs> value)

 

Sub remove_DebugFrameExit(value As EventHandler<ScriptFrameExitEventArgs>)

Parameters:

  • value:

remove_DebugLog

 

method remove_DebugLog(value: EventHandler<ScriptLogEventArgs>)

 

void remove_DebugLog(EventHandler<ScriptLogEventArgs> value)

 

Sub remove_DebugLog(value As EventHandler<ScriptLogEventArgs>)

Parameters:

  • value:

remove_DebugTracePoint

 

method remove_DebugTracePoint(value: EventHandler<ScriptTracePointEventArgs>)

 

void remove_DebugTracePoint(EventHandler<ScriptTracePointEventArgs> value)

 

Sub remove_DebugTracePoint(value As EventHandler<ScriptTracePointEventArgs>)

Parameters:

  • value:

remove_DebugUnhandledException

 

method remove_DebugUnhandledException(value: EventHandler<ScriptUnhandledExceptionEventArgs>)

 

void remove_DebugUnhandledException(EventHandler<ScriptUnhandledExceptionEventArgs> value)

 

Sub remove_DebugUnhandledException(value As EventHandler<ScriptUnhandledExceptionEventArgs>)

Parameters:

  • value:

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

 

add_DebugFrameEnter

 

method add_DebugFrameEnter(value: EventHandler<ScriptFrameEnterEventArgs>)

 

void add_DebugFrameEnter(EventHandler<ScriptFrameEnterEventArgs> value)

 

Sub add_DebugFrameEnter(value As EventHandler<ScriptFrameEnterEventArgs>)

Parameters:

  • value:

add_DebugFrameExit

 

method add_DebugFrameExit(value: EventHandler<ScriptFrameExitEventArgs>)

 

void add_DebugFrameExit(EventHandler<ScriptFrameExitEventArgs> value)

 

Sub add_DebugFrameExit(value As EventHandler<ScriptFrameExitEventArgs>)

Parameters:

  • value:

add_DebugLog

 

method add_DebugLog(value: EventHandler<ScriptLogEventArgs>)

 

void add_DebugLog(EventHandler<ScriptLogEventArgs> value)

 

Sub add_DebugLog(value As EventHandler<ScriptLogEventArgs>)

Parameters:

  • value:

add_DebugTracePoint

 

method add_DebugTracePoint(value: EventHandler<ScriptTracePointEventArgs>)

 

void add_DebugTracePoint(EventHandler<ScriptTracePointEventArgs> value)

 

Sub add_DebugTracePoint(value As EventHandler<ScriptTracePointEventArgs>)

Parameters:

  • value:

add_DebugUnhandledException

 

method add_DebugUnhandledException(value: EventHandler<ScriptUnhandledExceptionEventArgs>)

 

void add_DebugUnhandledException(EventHandler<ScriptUnhandledExceptionEventArgs> value)

 

Sub add_DebugUnhandledException(value As EventHandler<ScriptUnhandledExceptionEventArgs>)

Parameters:

  • value:

Continue

Continues script execution after it has been paused.

 

method Continue

 

void Continue()

 

Sub Continue

remove_DebugFrameEnter

 

method remove_DebugFrameEnter(value: EventHandler<ScriptFrameEnterEventArgs>)

 

void remove_DebugFrameEnter(EventHandler<ScriptFrameEnterEventArgs> value)

 

Sub remove_DebugFrameEnter(value As EventHandler<ScriptFrameEnterEventArgs>)

Parameters:

  • value:

remove_DebugFrameExit

 

method remove_DebugFrameExit(value: EventHandler<ScriptFrameExitEventArgs>)

 

void remove_DebugFrameExit(EventHandler<ScriptFrameExitEventArgs> value)

 

Sub remove_DebugFrameExit(value As EventHandler<ScriptFrameExitEventArgs>)

Parameters:

  • value:

remove_DebugLog

 

method remove_DebugLog(value: EventHandler<ScriptLogEventArgs>)

 

void remove_DebugLog(EventHandler<ScriptLogEventArgs> value)

 

Sub remove_DebugLog(value As EventHandler<ScriptLogEventArgs>)

Parameters:

  • value:

remove_DebugTracePoint

 

method remove_DebugTracePoint(value: EventHandler<ScriptTracePointEventArgs>)

 

void remove_DebugTracePoint(EventHandler<ScriptTracePointEventArgs> value)

 

Sub remove_DebugTracePoint(value As EventHandler<ScriptTracePointEventArgs>)

Parameters:

  • value:

remove_DebugUnhandledException

 

method remove_DebugUnhandledException(value: EventHandler<ScriptUnhandledExceptionEventArgs>)

 

void remove_DebugUnhandledException(EventHandler<ScriptUnhandledExceptionEventArgs> value)

 

Sub remove_DebugUnhandledException(value As EventHandler<ScriptUnhandledExceptionEventArgs>)

Parameters:

  • value:

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>

See Also