Table of Contents

Class DiagramDebugger

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

The debugger of the diagram composite element.

public class DiagramDebugger : IDebugger<DiagramSocket, DiagramElement>, IDebugger, IPersistable
Inheritance
DiagramDebugger
Implements
IDebugger
IPersistable
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 diagram element. Otherwise, false.

public bool CanStepInto { get; }

Property Value

bool

CanStepOut

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

public bool CanStepOut { get; }

Property Value

bool

Composition

Composite element.

public CompositionDiagramElement Composition { get; }

Property Value

CompositionDiagramElement

IsDisabled

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

public bool IsDisabled { get; set; }

Property Value

bool

IsWaiting

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

public bool IsWaiting { get; }

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

Methods

AddBreak(DiagramSocket)

To add a breakpoint in the socket.

public void AddBreak(DiagramSocket socket)

Parameters

socket DiagramSocket

Socket.

Continue()

Continue.

public void Continue()

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.

RaiseChanged()

Call Changed event.

public void RaiseChanged()

RemoveAllBreaks()

Remove all breakpoints from the scheme.

public void RemoveAllBreaks()

RemoveBreak(DiagramSocket)

To remove the breakpoint from the socket.

public void RemoveBreak(DiagramSocket socket)

Parameters

socket DiagramSocket

Socket.

Save(SettingsStorage)

Save settings.

public void Save(SettingsStorage storage)

Parameters

storage SettingsStorage

Settings storage.

StepInto(DiagramElement)

To go inside the diagram composite element.

public void StepInto(DiagramElement composition)

Parameters

composition DiagramElement

Composite element.

StepNext()

To go to the next element.

public void StepNext()

StepOut(DiagramElement)

To exit from the diagram composite element.

public void StepOut(DiagramElement composition)

Parameters

composition DiagramElement

Composite element.

Events

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

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>