Use an environment variable to activate debug mode, instead of a package-specific flag