adding a utility helper to detect debug mode