Question Details

No question body available.

Tags

debugging pycharm python-asyncio

Answers (2)

November 4, 2025 Score: 3 Rep: 312 Quality: Low Completeness: 90%

The following helped me with a TypeError: 'Task' object is not callable error in PyCharm when running the debugger. I was using the scrapy library and it behaved in the same way as your error while debugging, but I suspect that you are seeing a similar issue with the asyncio library.

  • Press Shift twice to open the search window

  • From the main bar select Actions

  • Type in Registry and select Registry...

  • From here scroll down to python.debug.asyncio.repl and make sure the Value column is deselected

This is taken from the following answer: Cannot debug script with trio_asyncio in PyCharm

August 10, 2025 Score: 2 Rep: 111 Quality: Low Completeness: 50%

I have just run in to the same problem with PyCharm 2025.2. After digging a little bit, I made core plugin file changes to suppress this part and side effects. Debugging still works anyway.
C:\Program Files\JetBrains\PyCharm 2025.2\plugins\python\helpers-pro\pydevdasyncio\pydevdnestasyncio.py:34

if ISASYNCIODEBUGGERENV:

change to

if False:

(use admin permission to perform this)