diff options
| author | Victor Stinner <victor.stinner@gmail.com> | 2017-11-20 07:14:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-20 07:14:07 -0800 |
| commit | 44862df2eeec62adea20672b0fe2a5d3e160569e (patch) | |
| tree | e8f66bbbd2b7769ca42a292f553a7ecacb29da57 /Doc/library/asyncio-dev.rst | |
| parent | 04dee2720851ec39e831beaa3edc0c59f228f461 (diff) | |
| download | cpython-git-44862df2eeec62adea20672b0fe2a5d3e160569e.tar.gz | |
bpo-32047: -X dev enables asyncio debug mode (#4418)
The new -X dev command line option now also enables asyncio debug
mode.
Diffstat (limited to 'Doc/library/asyncio-dev.rst')
| -rw-r--r-- | Doc/library/asyncio-dev.rst | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Doc/library/asyncio-dev.rst b/Doc/library/asyncio-dev.rst index 1838eb95a7..b2ad87b5d0 100644 --- a/Doc/library/asyncio-dev.rst +++ b/Doc/library/asyncio-dev.rst @@ -21,7 +21,9 @@ enable *debug mode*. To enable all debug checks for an application: * Enable the asyncio debug mode globally by setting the environment variable - :envvar:`PYTHONASYNCIODEBUG` to ``1``, or by calling :meth:`AbstractEventLoop.set_debug`. + :envvar:`PYTHONASYNCIODEBUG` to ``1``, using ``-X dev`` command line option + (see the :option:`-X` option), or by calling + :meth:`AbstractEventLoop.set_debug`. * Set the log level of the :ref:`asyncio logger <asyncio-logger>` to :py:data:`logging.DEBUG`. For example, call ``logging.basicConfig(level=logging.DEBUG)`` at startup. @@ -42,6 +44,11 @@ Examples debug checks: * :exc:`ResourceWarning` warnings are emitted when transports and event loops are :ref:`not closed explicitly <asyncio-close-transports>`. +.. versionchanged:: 3.7 + + The new ``-X dev`` command line option can now also be used to enable + the debug mode. + .. seealso:: The :meth:`AbstractEventLoop.set_debug` method and the :ref:`asyncio logger |
