'The ``run`` commands will set the application\'s debug flag. Some
application configuration may already be calculated based on the
previous debug value. This method will recalculate affected values.
Called by the :func:`flask.cli.run` command or :meth:`Flask.run`
method if the debug flag is set explicitly in the call.
:param debug: the new value of the debug flag
.. versionadded:: 1.0
Reconfigures ``app.jinja_env.auto_reload``.'

def _reconfigure_for_run_debug(self, debug):

    self.debug = debug
    self.jinja_env.auto_reload = self.templates_auto_reload
