PyCharm 2020.2.2: debugging pytest is extremely slow compared with 2020.1.4
I have a project with over 1200+ pytest unit tests. Up to 2020.1.4, running all the tests via the debugger would take 1 min and 15 seconds. With 2020.2.2 it runs for over 5 minutes.
Same happens when debugging only one test function. With 2020.1.4 it would take 6 seconds to reach a breakpoint on the first line. With 2020.2.2 it takes 19 seconds for the same operation.
Is anybody also experiencing this and/or has a solution?
I'm running on a 2015 MacBook Pro, with 16GB RAM using Python 3.8.
请先登录再写评论。
Hi, is it possible to provide code sample to reproduce the issue (if possible, please provide in the related issue https://youtrack.jetbrains.com/issue/PY-44462)
Having the same issue - it wasn't until a recent update that tests started taking exponentially longer
Hi, I have exactly the same issue.
Please vote for this issue https://youtrack.jetbrains.com/issue/PY-44270
Disabling the mentioned option will likely fix the issue. If not, create a new ticket in YouTrack.
I tested Sergey Karpov's solution and it worked fine. Thanks
I have 2 external monitors on PC and if I unplug or disable one debugger works normal, but if you want to work with 2 monitors add in Help -> Edit Custom VM Options :