diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-02-19 22:15:02 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-02-19 22:15:02 (GMT) |
commit | 0f3e6bca1b7478027843fe6181f6b12f4c1514ed (patch) | |
tree | 0f997927e36175ab273d42bb947d4eee8001fc46 /Doc/library/asyncio-eventloop.rst | |
parent | ff385b89f40cfdfb6ceab41acfa89fa8594318f6 (diff) | |
download | cpython-0f3e6bca1b7478027843fe6181f6b12f4c1514ed.zip cpython-0f3e6bca1b7478027843fe6181f6b12f4c1514ed.tar.gz cpython-0f3e6bca1b7478027843fe6181f6b12f4c1514ed.tar.bz2 |
asyncio, Tulip issue #136: Add get/set_debug() methods to BaseEventLoopTests.
Add also a PYTHONASYNCIODEBUG environment variable to debug coroutines since
Python startup, to be able to debug coroutines defined directly in the asyncio
module.
Diffstat (limited to 'Doc/library/asyncio-eventloop.rst')
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index f056cac..04b182b 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -553,6 +553,22 @@ pool of processes). By default, an event loop uses a thread pool executor Set the default executor used by :meth:`run_in_executor`. +Debug mode +---------- + +.. method:: BaseEventLoop.get_debug() + + Get the debug mode (:class:`bool`) of the event loop. + +.. method:: BaseEventLoop.set_debug(enabled: bool) + + Set the debug mode of the event loop. + +.. seealso:: + + The :ref:`Develop with asyncio <asyncio-dev>` section. + + Server ------ |