Frames not available in non-suspended state
Answered
I am trying to debug a pytest script that hangs. There are threads that use paramiko to execute remote commands.
The hang involves those threads failing to sense that the remote command has completed.
If I run with the debugger (running on a remote server), I can pause it.
The problem is that the threads I care about only give me "frames not available in non-suspended state."
Any ideas how to get past this?
Please sign in to leave a comment.
Hi, I have the same problem.
I have changed the breakpoint default (and it's current state) to suspend 'All', but the problem remains.
My code is the following:
So when i run on debug mode and am waiting on the sleep(0.5), i get that i can't reach the running thread t1.
Using python 3.7.5, pycharm 2020.1 Pro, win10
Same issue here. I get a mutex lock somewhere, but when I pause it I just get a thread that "works" and is fine but I have no idea which other thread is broken... setting breakpints/enabling all threads is not working as I dont know where it fails. This is useless. Why is there no global checkbox that tells it to monitor all threads?!
Same issue and useless help comment with PyCharm 2022.2
There's a very specific workaround :
1. Add to the evaluated expressions in the debugger something (for example “c” in this repro).
2. Turn on/off the debugger setting “show variable values in editor”. The thread which you couldn't inspect is now inspectable
So definitely looks like a bad bug in intellij.
Hi Adam, could you please switch the suspend policy for a breakpoint to All instead of Thread in Run | View Breakpoints?
Has it helped?