Skip to content
Myr

revert run debug docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 229dcbb · Browse files · 7 files+10 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

7 files+10 added−10 removed

  • other:+10 added−10 removed

7 files+10 added−10 removed

modified:docs/tutorial/factory.rst+1 added-1 removed
135 unmodified lines
136follow the tutorial.137138.. code-block:: text139140 $ flask --app flaskr run --debug140 $ flask --app flaskr --debug run141142You'll see output similar to this:143144.. code-block:: text
18 unmodified lines
modified:docs/cli.rst+2 added-2 removed
93 unmodified lines
94the ``--debug`` option.9596.. code-block:: console9798 $ flask --app hello run --debug98 $ flask --app hello --debug run99 * Serving Flask app "hello"100 * Debug mode: on101 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)102 * Restarting with inotify reloader
446 unmodified lines
549550Click the *Script path* dropdown and change it to *Module name*, then input ``flask``.551552The *Parameters* field is set to the CLI command to execute along with any arguments.553This example uses ``--app hello run --debug``, which will run the development server in553This example uses ``--app hello --debug run``, which will run the development server in554debug mode. ``--app hello`` should be the import or file with your Flask app.555556If you installed your project as a package in your virtualenv, you may uncheck the557*PYTHONPATH* options. This will more accurately match how you deploy later.
6 unmodified lines
modified:docs/config.rst+2 added-2 removed
45 unmodified lines
46----------4748The :data:`DEBUG` config value is special because it may behave inconsistently if49changed after the app has begun setting up. In order to set debug mode reliably, use the50``--debug`` option on the ``flask run`` command. ``flask run`` will use the interactive50``--debug`` option on the ``flask`` command. ``flask run`` will use the interactive51debugger and reloader by default in debug mode.5253.. code-block:: text5455 $ flask --app hello run --debug55 $ flask --app hello --debug run5657Using the option is recommended. While it is possible to set :data:`DEBUG` in your58config or code, this is strongly discouraged. It can't be read early by the ``flask run``59command, and some systems or extensions may have already configured themselves based on
721 unmodified lines
modified:docs/debugging.rst+2 added-2 removed
41 unmodified lines
42The debugger is enabled by default when the development server is run in debug mode.4344.. code-block:: text4546 $ flask --app hello run --debug46 $ flask --app hello --debug run4748When running from Python code, passing ``debug=True`` enables debug mode, which is49mostly equivalent.50
20 unmodified lines
71which can interfere.7273.. code-block:: text7475 $ flask --app hello run --debug --no-debugger --no-reload75 $ flask --app hello --debug run --no-debugger --no-reload7677When running from Python:7879.. code-block:: python
8 unmodified lines
modified:docs/quickstart.rst+1 added-1 removed
106 unmodified lines
107To enable debug mode, use the ``--debug`` option.108109.. code-block:: text110111 $ flask --app hello run --debug111 $ flask --app hello --debug run112 * Serving Flask app 'hello'113 * Debug mode: on114 * Running on http://127.0.0.1:5000 (Press CTRL+C to quit)115 * Restarting with stat
792 unmodified lines
modified:docs/server.rst+1 added-1 removed
22 unmodified lines
23debug mode.2425.. code-block:: text2627 $ flask --app hello run --debug27 $ flask --app hello --debug run2829This enables debug mode, including the interactive debugger and reloader, and then30starts the server on http://localhost:5000/. Use ``flask run --help`` to see the31available options, and :doc:`/cli` for detailed instructions about configuring and using
84 unmodified lines
modified:examples/tutorial/README.rst+1 added-1 removed
46 unmodified lines
4748.. code-block:: text4950 $ flask --app flaskr init-db51 $ flask --app flaskr run --debug51 $ flask --app flaskr --debug run5253Open http://127.0.0.1:5000 in a browser.5455
13 unmodified lines