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 bool CanStepInto { get; }
value = diagramDebugger.CanStepInto
, if it is possible to go inside of the current method. Otherwise, .
public bool CanStepOut { get; }
value = diagramDebugger.CanStepOut
, if it is possible to go outside from the current method. Otherwise, .
public CompositionDiagramElement Composition { get; private set; }
value = diagramDebugger.Composition
diagramDebugger.Composition = value
Composite element.
public object ExecBlock { get; }
value = diagramDebugger.ExecBlock
Current executing block.
public object HoverBlock { get; }
value = diagramDebugger.HoverBlock
Current hover block.
public bool IsDisabled { get; set; }
value = diagramDebugger.IsDisabled
diagramDebugger.IsDisabled = value
, if the debugger is used. Otherwise, .
public bool IsWaitingOnError { get; }
value = diagramDebugger.IsWaitingOnError
, if the debugger is stopped at the error. 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()
Disposes the managed resources. Override this method to add custom clean up of managed 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 Changed
diagramDebugger.Changed += handler
The event of changes breakpoints.
public event Action<CompositionDiagramElement> CompositionChanged
diagramDebugger.CompositionChanged += handler
The diagram composite element change event.
public event Action Continued
diagramDebugger.Continued += handler
The event of continue execution.
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.