DiagramDebugger

StockSharp.Diagram

The debugger of the diagram composite element.

Inherits: Disposable

Implements: IDebugger, IPersistable, IDisposable

Constructors

DiagramDebugger
public DiagramDebugger(CompositionDiagramElement composition)
diagramDebugger = DiagramDebugger(composition)

Initializes a new instance of the DiagramDebugger.

composition
Composite element.

Properties

Breakpoints
public IEnumerable<DiagramSocketBreakpoint> Breakpoints { get; }
value = diagramDebugger.Breakpoints

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

CanStepInto
public bool CanStepInto { get; }
value = diagramDebugger.CanStepInto
CanStepOut
public bool CanStepOut { get; }
value = diagramDebugger.CanStepOut
Composition
public CompositionDiagramElement Composition { get; private set; }
value = diagramDebugger.Composition
diagramDebugger.Composition = value

Composite element.

ExecBlock
public object ExecBlock { get; }
value = diagramDebugger.ExecBlock
HoverBlock
public object HoverBlock { get; }
value = diagramDebugger.HoverBlock
IsDisabled
public bool IsDisabled { get; set; }
value = diagramDebugger.IsDisabled
diagramDebugger.IsDisabled = value

, if the debugger is used. Otherwise, .

IsWaitingOnError
public bool IsWaitingOnError { get; }
value = diagramDebugger.IsWaitingOnError
IsWaitingOnInput
public bool IsWaitingOnInput { get; }
value = diagramDebugger.IsWaitingOnInput

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

IsWaitingOnOutput
public bool IsWaitingOnOutput { get; }
value = diagramDebugger.IsWaitingOnOutput

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

Root
public CompositionDiagramElement Root { get; }
value = diagramDebugger.Root

The root diagram element.

Methods

AddBreak
public bool AddBreak(DiagramSocket socket)
result = diagramDebugger.AddBreak(socket)

To add a breakpoint in the socket.

socket
Socket.

Returns: Operation result.

Continue
public void Continue()
diagramDebugger.Continue()

Continue.

DisposeManaged
protected override void DisposeManaged()
diagramDebugger.DisposeManaged()

Release resources.

IsBreak
public bool IsBreak(DiagramSocket socket)
result = diagramDebugger.IsBreak(socket)

Whether the socket is the breakpoint.

socket
Socket.

Returns: , if the socket is the breakpoint, otherwise, .

Load
public void Load(SettingsStorage storage)
diagramDebugger.Load(storage)

Load settings.

storage
Settings storage.
RemoveAllBreaks
public void RemoveAllBreaks()
diagramDebugger.RemoveAllBreaks()

Remove all breakpoints from the scheme.

RemoveBreak
public bool RemoveBreak(DiagramSocket socket)
result = diagramDebugger.RemoveBreak(socket)

To remove the breakpoint from the socket.

socket
Socket.

Returns: Operation result.

Save
public void Save(SettingsStorage storage)
diagramDebugger.Save(storage)

Save settings.

storage
Settings storage.
StepInto
public void StepInto()
diagramDebugger.StepInto()
StepNext
public void StepNext()
diagramDebugger.StepNext()
StepOut
public void StepOut()
diagramDebugger.StepOut()

Step out

TryGetBreakpoint
public bool TryGetBreakpoint(DiagramSocket socket, DiagramSocketBreakpoint breakpoint)
result = diagramDebugger.TryGetBreakpoint(socket, breakpoint)

To get the breakpoint by the socket.

socket
DiagramSocket
breakpoint
DiagramSocketBreakpoint

Returns: Operation result.

Events

Added
public event Action<DiagramSocket> Added
diagramDebugger.Added += handler

Add breakpoint event.

Break
public event Action<DiagramSocket> Break
diagramDebugger.Break += handler

The event of the stop at the breakpoint.

Changed
public event Action Changed
diagramDebugger.Changed += handler

Association changed.

CompositionChanged
public event Action<CompositionDiagramElement> CompositionChanged
diagramDebugger.CompositionChanged += handler

The diagram composite element change event.

Continued
public event Action Continued
diagramDebugger.Continued += handler
Error
public event Action<DiagramElement> Error
diagramDebugger.Error += handler

The event of the stop at the error.

Removed
public event Action<DiagramSocket> Removed
diagramDebugger.Removed += handler

Remove breakpoint event.