Troubleshooting – Debugging A FastAPI App in WSL / Docker

With VS Code 1.75.1 you could get this error message.

What helped in my environment was, to patch an extension file in the WSL.

$HOME/.vscode-server/extensions/ms-python.python-2023.5.10591006/pythonFiles/lib/python/debugpy/adapter/clients.py