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
IDebugger
IPersistable
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

public bool CanStepInto { get; }

Property Value

bool

CanStepOut

public bool CanStepOut { get; }

Property Value

bool

Composition

Composite element.

public CompositionDiagramElement Composition { get; }

Property Value

CompositionDiagramElement

ExecBlock

public object ExecBlock { get; }

Property Value

object

HoverBlock

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

public bool IsWaitingOnError { get; }

Property Value

bool

IsWaitingOnInput

public bool IsWaitingOnInput { get; }

Property Value

bool

IsWaitingOnOutput

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()

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()

public void StepInto()

StepNext()

public void StepNext()

StepOut()

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

public event Action Changed

Event Type

Action

CompositionChanged

The diagram composite element change event.

public event Action<CompositionDiagramElement> CompositionChanged

Event Type

Action<CompositionDiagramElement>

Continued

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>