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
CompositionDiagramElementComposite element.
Properties
Breakpoints
Breakpoints (sockets, on which the data transmission will be stopped).
public IEnumerable<DiagramSocketBreakpoint> Breakpoints { get; }
Property Value
CanStepInto
public bool CanStepInto { get; }
Property Value
CanStepOut
public bool CanStepOut { get; }
Property Value
Composition
Composite element.
public CompositionDiagramElement Composition { get; }
Property Value
ExecBlock
Current executing block.
public object ExecBlock { get; }
Property Value
HoverBlock
Current hover block.
public object HoverBlock { get; }
Property Value
IsDisabled
public bool IsDisabled { get; set; }
Property Value
IsWaitingOnError
public bool IsWaitingOnError { get; }
Property Value
IsWaitingOnInput
public bool IsWaitingOnInput { get; }
Property Value
IsWaitingOnOutput
public bool IsWaitingOnOutput { get; }
Property Value
Root
The root diagram element.
public CompositionDiagramElement Root { get; }
Property Value
Methods
AddBreak(DiagramSocket)
To add a breakpoint in the socket.
public bool AddBreak(DiagramSocket socket)
Parameters
socket
DiagramSocketSocket.
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
DiagramSocketSocket.
Returns
Load(SettingsStorage)
Load settings.
public void Load(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings 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
DiagramSocketSocket.
Returns
- bool
Operation result.
Save(SettingsStorage)
Save settings.
public void Save(SettingsStorage storage)
Parameters
storage
SettingsStorageSettings 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
DiagramSocketbreakpoint
DiagramSocketBreakpoint
Returns
- bool
Operation result.
Events
Added
Add breakpoint event.
public event Action<DiagramSocket> Added
Event Type
Break
The event of the stop at the breakpoint.
public event Action<DiagramSocket> Break
Event Type
Changed
The event of changes breakpoints.
public event Action Changed
Event Type
CompositionChanged
The diagram composite element change event.
public event Action<CompositionDiagramElement> CompositionChanged
Event Type
Continued
The event of continue execution.
public event Action Continued
Event Type
Error
The event of the stop at the error.
public event Action<DiagramElement> Error
Event Type
Removed
Remove breakpoint event.
public event Action<DiagramSocket> Removed