Skip to main content

All Questions

1 vote
0 answers
23 views

Navigate between Threads in PyCharm

I recently move to PyCharm Professional in my company. Before that I was on PyCharm Community. We have two programs which communicate between them with PyZMQ. Each of them are open in two separate ...
lotar69's user avatar
  • 11
1 vote
0 answers
1k views

yappi profiler not working on FastAPI uvicorn threads

Overview I tried using yappi (version 1.4.0) to profile my python (3.10) server. I am using FastAPI version 0.88.0 and uvicorn version 0.20.0 , And no matter how I try to run multithreaded-profiling I ...
user6790773's user avatar
0 votes
0 answers
55 views

How can I break into event listeners in Python (another thread)?

I have this code: from pynput import keyboard import time # The key combination to check COMBINATIONS = [] # The currently active modifiers current = set() current_2 = set() def main(): def ...
user18528883's user avatar
0 votes
1 answer
243 views

How to debug sporadic freezing of PyQt5 application after exiting?

I'm developing PyQt5 application of medium complexity. It has various widgets (both native and third-party) and Qthreads. It woks fine most of the time, but once in about 5 times the application hangs ...
Mihail Kondratyev's user avatar
1 vote
0 answers
85 views

Debugging Multi-Processing in Python

I am implementing a multiprocessing code for my python script. The way I am utilizing the multiprocessing module is as follows: - with get_context("spawn").Pool() as p: ...
Karan Saxena's user avatar
0 votes
1 answer
1k views

How to configure VScode to debugg multithreaded application as in winpdb?

How can i configure VScode to debugg multithreaded application like this one as it is done in winpdb (we can see the different clients threads in the call stack) ? Is it possible to see both my main ...
curious's user avatar
  • 211
7 votes
2 answers
6k views

How to debug PyQt5 threads in Visual Studio Code?

I am right now developing a PyQT5 application an use multithreading to avoid freezing of the GUI. Unfortuneately the Visual Studio Code debugger does not stop on breakpoints inside the executed thread....
Robin's user avatar
  • 71
0 votes
0 answers
19 views

Debug asynchron python script with vsc

I have module, which uses from threading import Thread and the code works totaly as expected, but I want to debug the module since I want expand the capabilites of the module. The Problem is following ...
MaKaNu's user avatar
  • 1,038
1 vote
0 answers
792 views

sys.settrace seems to be ignored in threads

So I started working on an experimental debugger that attempts to solve a few issue that I have as I'm mainly debugging stuff located on remote machines. Here's an example of the code I have: debugger ...
Loïc Faure-Lacroix's user avatar
2 votes
1 answer
3k views

PDB - How to suspend all threads

When a multithreaded Python program hits a breakpoint, the relevant thread will stop but the other threads will continue running. In some cases, this can be an obstacle to debugging. For example, in ...
Noé Rubinstein's user avatar
0 votes
0 answers
384 views

In visual studio code, how to find out which thread has a certain file open when debugging Python?

I'm trying to solve a bug that results from the program trying to move a directory it already has open elsewhere. The program is written in Python and I managed to run it in the Visual Studio Code ...
Jann Poppinga's user avatar
5 votes
2 answers
3k views

Why are multiple debugging threads being started in integrated Python-debugging of VS Code?

** UPDATE ** From a related discussion I got the following answer: Also, something to double check in your code is if the main entry point is protected by the __name__=='__main__' check: if __name__ =...
Andreas L.'s user avatar
  • 4,591
0 votes
0 answers
198 views

How to debug the threading in python , the behavior of python threading is very misleading

I have a process running on aws instance comprises of 7 threads. on running top -H command on linux based system it reflects residual memory as 7.1 GB. how to find which thread is throwing the error ...
aryan patel's user avatar
4 votes
0 answers
418 views

How to solve "<frame not available>" in pycharm concurrency diagram

I am trying to debug a deadlock condition using Pycharm Profesinoal 2019.3.1 and the Concurrency Diagram. I can see the deadlock and the different threads, but when I click in one of them I get the ...
José D.'s user avatar
  • 4,285
1 vote
2 answers
1k views

Inspecting local variables in threads in Python (pyrasite)?

I have a script that uses threads, that simply freezes after running for an hour or so, which makes it pretty difficult to debug. Eventually, I found pyrasite, and basically, I could "hook" into the ...
sdbbs's user avatar
  • 5,608

15 30 50 per page