PyCharm with Django cannot connect to debugger pydevd.py
With different Django projects in Pycharm, I get this error when I try to run the debugger:
D:\prog\python\toolStorage\venv\Scripts\python.exe -X pycache_prefix=C:\Users\Admin\AppData\Local\JetBrains\PyCharm2023.2\cpython-cache C:/PyCharm/plugins/python/helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client 127.0.0.1 --port 28102 --file D:\prog\python\toolStorage\manage.py runserver 8011 Connected to pydev debugger (build 232.10300.41)Unknown command: 'C:\\PyCharm\\plugins\\python\\helpers\\pydev\\pydevd.py'Type 'manage.py help' for usage.
Process finished with exit code 1
- The normal “Run project” works fine, but the debugger does't start.
- I found this pydevd.py file and it exists.
- The debugger works fine in regular python scripts like Hello world.
- Manually running this command in the console results in an error ConnectionRefusedError: [WinError 10061] Connection was not established because the destination computer rejected the connection request.
Windows 10 x64, PyCharm Professional 2023.2.1
请先登录再写评论。
Andrey, thanks for your response. Upgrading to version 2024.1 resolved this issue.