Connection to Python debugger failed: Socket closed "IndexError: list index out of range" Follow
I have a fresh Install of PyCharm 2020.2.1 on Ubuntu 20.04 using Python 3.8. Just to check my configuration, I ran a simple print("hello"). 10 minutes later, python was still running so I stopped it and ran the debugger and got this output:
Traceback (most recent call last):
File "/snap/pycharm-community/209/plugins/python-ce/helpers/pydev/pydevd.py", line 2141, in <module>
main()
File "/snap/pycharm-community/209/plugins/python-ce/helpers/pydev/pydevd.py", line 1975, in main
setup = process_command_line(sys.argv)
File "/snap/pycharm-community/209/plugins/python-ce/helpers/pydev/_pydevd_bundle/pydevd_command_line_handling.py", line 136, in process_command_line
setup['file'] = argv[i]
IndexError: list index out of range
I've seen elsewhere people being asked to turn of PyQt Compatibility, and it seems that's not it. Thoughts?
Please sign in to leave a comment.
Interestingly, when I build PyCharm from the snap install or from the Ubuntu app install toolbox, I get this problem, but when I installed it from a tar file, I don't.
Okay, so it updated, and now doesn't work. So i guess the problem is Jetbrain's version. ??? (Am I right?)
Hello,
Please share a screenshot of your run configuration. (https://www.jetbrains.com/help/pycharm/creating-and-editing-run-debug-configurations.html)
It looks like you don't have a target specified.
This might be a problem with directory names. The solution in:
https://superuser.com/questions/1385995/my-pycharm-run-is-working-but-debugging-is-failing/1663860#1663860
helped