KeyboardInterrupt when debugging a PyTorch project
Completed
I am getting these strange "keyboard interrupt" errors when debugging a PyTorch project:
This only happens in debug mode. Did anyone experience any similar problems? Is it maybe the fact that I am using community version?
I am using the following version of PyCharm:
Please sign in to leave a comment.
Hi,
Does it help if you disable Attach to subprocess automatically while debugging under File | Settings | Build, Execution, Deployment | Python Debugger?
That worked :D ! Thank you. Would you happen to know why does this solve the issue? What is happening behind the scenes?
Now i am getting a warning of this kind:
But everything works as expected. I am just trying to understand what exactly is happening.
It is related to https://youtrack.jetbrains.com/issue/PY-16301
I think only developer knows what happens behind the scene at this point, but probably PyCharm fails to attach to some process and terminates with this exception.
Worked for me as well! Am not getting the debugger warnings. using pycharm 2019.2.3 on Mojave with Python 3.7.4
worked for me as well. using pycharm on mac with python 3.7.4