remote debugging doesn't work with pytorch

When I try to debug, there is a KeyboardInterrupt after the multithreaded PyTorch data enumerator ends enumerating the data...

 

There are no breakpoints, caches cleared.

2 comments

Hi,

Can you please create a minimal working example just enough to reproduce the issue and provide the code?

0

Please take a look at the following thread with similar issue: https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003290559-KeyboardInterrupt-when-debugging-a-PyTorch-project?page=1#community_comment_360000414240

 

The solution which worked is:

disable Attach to subprocess automatically while debugging under File | Settings | Build, Execution, Deployment | Python Debugger

Please try it

0

Please sign in to leave a comment.