KeyboardInterrupt when debugging a PyTorch project


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:





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

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.


Please sign in to leave a comment.