Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit 5fef0c7

Browse files
committed
add debug mode
1 parent ee58fbf commit 5fef0c7

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

Diff for: debug_mode.rst

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
++++++++++++++++++
2+
Asyncio Debug Mode
3+
++++++++++++++++++
4+
5+
* Set the environment variable: ``PYTHONASYNCIODEBUG=1``
6+
* Configure Python logging:
7+
``logging.basicConfig(level=logging.ERROR)``
8+
9+
See also: `Debug mode of asyncio (ref doc)
10+
<https://docs.python.org/dev/library/asyncio-dev.html#debug-mode-of-asyncio>`_.
11+

Diff for: index.rst

+2
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ Chapiter 1: First steps with asyncio
1717
twisted.rst
1818
getting_help.rst
1919

20+
2021
Chapiter 2: Advanced topics
2122
===========================
2223

2324
.. toctree::
2425
:maxdepth: 2
2526

2627
threads.rst
28+
debug_mode.rst
2729

2830

2931
See also

Diff for: threads.rst

+6
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@ Run slow CPU-intensive or blocking I/O code in a thread:
66

77
.. literalinclude:: examples/run_in_thread.py
88

9+
See also:
10+
11+
* `run_in_executor() documentation
12+
<https://docs.python.org/dev/library/asyncio-eventloop.html#asyncio.BaseEventLoop.run_in_executor>`_
13+
* `asyncio: Concurrency and multithreading
14+
<https://docs.python.org/dev/library/asyncio-dev.html#concurrency-and-multithreading>`_

0 commit comments

Comments
 (0)