Created
October 31, 2021 17:43
-
-
Save jigi-33/39466a7049c31f12b1823484a3e2d832 to your computer and use it in GitHub Desktop.
asyncio code DEBUGGING tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import os | |
import logging, warnings | |
os.environ["PYTHONASYNCIODEBUG"] = "1" | |
logging.basicConfig(level=logging.DEBUG) | |
logging.getLogger("asyncio").setLevel(logging.DEBUG) | |
warnings.resetwarnings() | |
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ это в самом начале | |
# | |
# | |
# и в конце при запуске программы дописываем kwarg: | |
# "debug=True" в asyncio.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment