DiagramDebugger
The debugger of the diagram composite element.
Inherits: Disposable
Implements: IDebugger, IPersistable, IDisposable
Constructors
public DiagramDebugger(CompositionDiagramElement composition)
diagramDebugger = DiagramDebugger(composition)
Initializes a new instance of the DiagramDebugger.
- composition
- Composite element.
Properties
public IEnumerable<DiagramSocketBreakpoint> Breakpoints { get; }
value = diagramDebugger.Breakpoints
Breakpoints (sockets, on which the data transmission will be stopped).
public CompositionDiagramElement Composition { get; private set; }
value = diagramDebugger.Composition
diagramDebugger.Composition = value
Composite element.
public bool IsDisabled { get; set; }
value = diagramDebugger.IsDisabled
diagramDebugger.IsDisabled = value
, if the debugger is used. Otherwise, .
public bool IsWaitingOnInput { get; }
value = diagramDebugger.IsWaitingOnInput
, if the debugger is stopped at the entry of the diagram element. Otherwise, .
public bool IsWaitingOnOutput { get; }
value = diagramDebugger.IsWaitingOnOutput
, if the debugger is stopped at the exit of the diagram element. Otherwise, .
public CompositionDiagramElement Root { get; }
value = diagramDebugger.Root
The root diagram element.
Methods
public bool AddBreak(DiagramSocket socket)
result = diagramDebugger.AddBreak(socket)
To add a breakpoint in the socket.
- socket
- Socket.
Returns: Operation result.
protected override void DisposeManaged()
diagramDebugger.DisposeManaged()
Release resources.
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, .
public void Load(SettingsStorage storage)
diagramDebugger.Load(storage)
Load settings.
- storage
- Settings storage.
public void RemoveAllBreaks()
diagramDebugger.RemoveAllBreaks()
Remove all breakpoints from the scheme.
public bool RemoveBreak(DiagramSocket socket)
result = diagramDebugger.RemoveBreak(socket)
To remove the breakpoint from the socket.
- socket
- Socket.
Returns: Operation result.
public void Save(SettingsStorage storage)
diagramDebugger.Save(storage)
Save settings.
- storage
- Settings storage.
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
public event Action<DiagramSocket> Added
diagramDebugger.Added += handler
Add breakpoint event.
public event Action<DiagramSocket> Break
diagramDebugger.Break += handler
The event of the stop at the breakpoint.
public event Action<CompositionDiagramElement> CompositionChanged
diagramDebugger.CompositionChanged += handler
The diagram composite element change event.
public event Action<DiagramElement> Error
diagramDebugger.Error += handler
The event of the stop at the error.
public event Action<DiagramSocket> Removed
diagramDebugger.Removed += handler
Remove breakpoint event.