Skip to content

Commit

Permalink
revert run debug docs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidism committed Dec 29, 2022
1 parent 229dcbb commit 4d69165
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ the ``--debug`` option.

.. code-block:: console
$ flask --app hello run --debug
$ flask --app hello --debug run
* Serving Flask app "hello"
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Expand Down Expand Up @@ -550,7 +550,7 @@ a name such as "flask run".
Click the *Script path* dropdown and change it to *Module name*, then input ``flask``.

The *Parameters* field is set to the CLI command to execute along with any arguments.
This example uses ``--app hello run --debug``, which will run the development server in
This example uses ``--app hello --debug run``, which will run the development server in
debug mode. ``--app hello`` should be the import or file with your Flask app.

If you installed your project as a package in your virtualenv, you may uncheck the
Expand Down
4 changes: 2 additions & 2 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ Debug Mode

The :data:`DEBUG` config value is special because it may behave inconsistently if
changed after the app has begun setting up. In order to set debug mode reliably, use the
``--debug`` option on the ``flask run`` command. ``flask run`` will use the interactive
``--debug`` option on the ``flask`` command. ``flask run`` will use the interactive
debugger and reloader by default in debug mode.

.. code-block:: text
$ flask --app hello run --debug
$ flask --app hello --debug run
Using the option is recommended. While it is possible to set :data:`DEBUG` in your
config or code, this is strongly discouraged. It can't be read early by the ``flask run``
Expand Down
4 changes: 2 additions & 2 deletions docs/debugging.rst
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The debugger is enabled by default when the development server is run in debug m

.. code-block:: text
$ flask --app hello run --debug
$ flask --app hello --debug run
When running from Python code, passing ``debug=True`` enables debug mode, which is
mostly equivalent.
Expand Down Expand Up @@ -72,7 +72,7 @@ which can interfere.

.. code-block:: text
$ flask --app hello run --debug --no-debugger --no-reload
$ flask --app hello --debug run --no-debugger --no-reload
When running from Python:

Expand Down
2 changes: 1 addition & 1 deletion docs/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ To enable debug mode, use the ``--debug`` option.

.. code-block:: text
$ flask --app hello run --debug
$ flask --app hello --debug run
* Serving Flask app 'hello'
* Debug mode: on
* Running on http://127.0.0.1:5000 (Press CTRL+C to quit)
Expand Down
2 changes: 1 addition & 1 deletion docs/server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ debug mode.

.. code-block:: text
$ flask --app hello run --debug
$ flask --app hello --debug run
This enables debug mode, including the interactive debugger and reloader, and then
starts the server on http://localhost:5000/. Use ``flask run --help`` to see the
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorial/factory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ follow the tutorial.

.. code-block:: text
$ flask --app flaskr run --debug
$ flask --app flaskr --debug run
You'll see output similar to this:

Expand Down
2 changes: 1 addition & 1 deletion examples/tutorial/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Run
.. code-block:: text
$ flask --app flaskr init-db
$ flask --app flaskr run --debug
$ flask --app flaskr --debug run
Open http://127.0.0.1:5000 in a browser.

Expand Down

0 comments on commit 4d69165

Please sign in to comment.