Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debugging Threads
#1
Hi! I am new here, I hope this is the place where this kind of questions should be posted.

I have googled a lot and always I find the same answer: Use winpdb... but I have not found a way to do what I want. I tell you what is the problem and what I have tried first.

I am running a python program into a docker container, so I use web-pdb to debug the program inserting breakpoint() in a file... because I use PYTHONBREAKPOINT = web_pdb.set_trace. So, I can debug the program until I send 'c', then the debugger is freeze and I can not do anything. I think it is because the breakpoint() is inside a class that inherit from threading.Thread.

And that is my problem. I hope you can help me Cry

I want to include breakpoint() anywhere and get the control to debugger in that point.

Any idea?

Thank you in advance!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020