Table of Contents

Class DiagramDebugger

Namespace
StockSharp.Diagram
Assembly
StockSharp.Diagram.Core.dll

The debugger of the diagram composite element.

public class DiagramDebugger : Disposable, IDebugger, IPersistable, IDisposable
Inheritance
DiagramDebugger
Implements
Inherited Members
Extension Methods

Constructors

DiagramDebugger(CompositionDiagramElement)

Initializes a new instance of the DiagramDebugger.

public DiagramDebugger(CompositionDiagramElement composition)

Parameters

composition CompositionDiagramElement

Composite element.

Properties

Breakpoints

Breakpoints (sockets, on which the data transmission will be stopped).

public IEnumerable<DiagramSocketBreakpoint> Breakpoints { get; }

Property Value

IEnumerable<DiagramSocketBreakpoint>

CanStepInto

true, if it is possible to go inside of the current method. Otherwise, false.

public bool CanStepInto { get; }

Property Value

bool

CanStepOut

true, if it is possible to go outside from the current method. Otherwise, false.

public bool CanStepOut { get; }

Property Value

bool

Composition

Composite element.

public CompositionDiagramElement Composition { get; }

Property Value

CompositionDiagramElement

ExecBlock

Current executing block.

public object ExecBlock { get; }

Property Value

object

HoverBlock

Current hover block.

public object HoverBlock { get; }

Property Value

object

IsDisabled

false, if the debugger is used. Otherwise, true.

public bool IsDisabled { get; set; }

Property Value

bool

IsWaitingOnError

true, if the debugger is stopped at the error. Otherwise, false.

public bool IsWaitingOnError { get; }

Property Value

bool

IsWaitingOnInput

true, if the debugger is stopped at the entry of the diagram element. Otherwise, false.

public bool IsWaitingOnInput { get; }

Property Value

bool

IsWaitingOnOutput

true, if the debugger is stopped at the exit of the diagram element. Otherwise, false.

public bool IsWaitingOnOutput { get; }

Property Value

bool

Root

The root diagram element.

public CompositionDiagramElement Root { get; }

Property Value

CompositionDiagramElement

Methods

AddBreak(DiagramSocket)

To add a breakpoint in the socket.

public bool AddBreak(DiagramSocket socket)

Parameters

socket DiagramSocket

Socket.

Returns

bool

Operation result.

Continue()

Continue.

public void Continue()

DisposeManaged()

Disposes the managed resources. Override this method to add custom clean up of managed resources.

protected override void DisposeManaged()

IsBreak(DiagramSocket)

Whether the socket is the breakpoint.

public bool IsBreak(DiagramSocket socket)

Parameters

socket DiagramSocket

Socket.

Returns

bool

true, if the socket is the breakpoint, otherwise, false.

Load(SettingsStorage)

Load settings.

public void Load(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

RemoveAllBreaks()

Remove all breakpoints from the scheme.

public void RemoveAllBreaks()

RemoveBreak(DiagramSocket)

To remove the breakpoint from the socket.

public bool RemoveBreak(DiagramSocket socket)

Parameters

socket DiagramSocket

Socket.

Returns

bool

Operation result.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

StepInto()

Step into the method.

public void StepInto()

StepNext()

To go to the next line.

public void StepNext()

StepOut()

Step out from the method.

public void StepOut()

TryGetBreakpoint(DiagramSocket, out DiagramSocketBreakpoint)

To get the breakpoint by the socket.

public bool TryGetBreakpoint(DiagramSocket socket, out DiagramSocketBreakpoint breakpoint)

Parameters

socket DiagramSocket

DiagramSocket

breakpoint DiagramSocketBreakpoint

DiagramSocketBreakpoint

Returns

bool

Operation result.

Events

Added

Add breakpoint event.

public event Action<DiagramSocket> Added

Event Type

Action<DiagramSocket>

Break

The event of the stop at the breakpoint.

public event Action<DiagramSocket> Break

Event Type

Action<DiagramSocket>

Changed

The event of changes breakpoints.

public event Action Changed

Event Type

Action

CompositionChanged

The diagram composite element change event.

public event Action<CompositionDiagramElement> CompositionChanged

Event Type

Action<CompositionDiagramElement>

Continued

The event of continue execution.

public event Action Continued

Event Type

Action

Error

The event of the stop at the error.

public event Action<DiagramElement> Error

Event Type

Action<DiagramElement>

Removed

Remove breakpoint event.

public event Action<DiagramSocket> Removed

Event Type

Action<DiagramSocket>