Function Instance.setDebugCallback

Sets the debug callback for the instance and associated devices. Must be set before creating devices. Depending on backend, it might only be effective if the instance was created with the right extensions.

abstract void setDebugCallback (
  void delegate(Severity, string) callback
);