Open ekeric13 opened 1 year ago
I am getting the same error while running debug on fastapi + sqlalchemy project. Are there any updates on this issue?
My vscode debug config:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python Debugger: FastAPI",
"type": "debugpy",
"request": "launch",
"cwd": "${workspaceFolder}",
"module": "uvicorn",
"args": [
"app.main:app",
"--reload"
],
"jinja": true,
"justMyCode": false
}
]
}
UPD: looks like the issue does not occur in case of replacing asyncpg with psycopg (3.2.1).
So I am using debugpy for debugging in vscode. Essentially this:
python -m debugpy --listen 0.0.0.0:5678 ./myscript.py
I am using asyncpg + sqlalchemy. Specifically an AsyncSessionWhen I set a breakpoint and use the debug console I can normally await async functions. But when I do this on an async query I get this error:
Is there a way I can
await
async queries in the debug console? Please let me know if this is a sqlAlchemy issue.