Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See Queue items in Pydev debug

Is it possible, and how, to see the items in a Queue instance while debugging in PyDev, without popping them out via the interactive console?
Best would be via the Expressions view of course as that would update while stepping the code

like image 756
Jonathan Livni Avatar asked May 25 '26 05:05

Jonathan Livni


1 Answers

You could use q.queue attribute to access the underlying sequence:

>>> q = Queue()
>>> q.put(1)
>>> q.queue
deque([1])
like image 74
jfs Avatar answered May 27 '26 19:05

jfs



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!