Respect the debug option in client code