circuits.core.debugger module

Debugger component used to debug each event in a system by printing each event to sys.stderr or to a Logger Component instance.

class circuits.core.debugger.Debugger(errors=True, events=True, file=None, logger=None, prefix=None, trim=None, **kwargs)

Bases: circuits.core.components.BaseComponent

Create a new Debugger Component

Creates a new Debugger Component that listens to all events in the system printing each event to sys.stderr or a Logger Component.

  • IgnoreEvents – list of events (str) to ignore
  • IgnoreChannels – list of channels (str) to ignore
  • enabled – Enabled/Disabled flag

log – Logger Component instance or None (default)

initializes x; see x.__class__.__doc__ for signature

IgnoreChannels = []
IgnoreEvents = ['generate_events']