Skip to main content

get_debug_flag

Get whether debug mode should be enabled for the app, indicated by the :envvar:FLASK_DEBUG environment variable. The default is False.

def get_debug_flag() - > bool

Get whether debug mode should be enabled for the app, indicated by the :envvar:FLASK_DEBUG environment variable. The default is False.

Returns

TypeDescription
boolA boolean indicating if debug mode is active; returns True if the environment variable is set to a truthy value, otherwise False.