Method: flask.helpers.get_debug_flag
Calls: 483, Exceptions: 0, Paths: 1Back
Path 1: 483 calls (1.0)
False (482) True (1)
1def get_debug_flag() -> bool:
2 """Get whether debug mode should be enabled for the app, indicated by the
3 :envvar:`FLASK_DEBUG` environment variable. The default is ``False``.
4 """
5 val = os.environ.get("FLASK_DEBUG")
6 return bool(val and val.lower() not in {"0", "false", "no"})