gaogaotiantian / watchpoints

watchpoints is an easy-to-use, intuitive variable/object monitor tool for python that behaves similar to watchpoints in gdb.
Apache License 2.0
497 stars 20 forks source link

It doesn't seems to work with pdb in terminal? #34

Closed MR-hyj closed 1 year ago

MR-hyj commented 1 year ago

非常的Amazing as it is, i don't think it can work in a terminal like pdb cuz it is a package... Personally, I won't be happy if I had to code so much watch and unwatch and debug over and over and over..

gaogaotiantian commented 1 year ago

Unfortunaly that's how watchpoints works now. It probably won't work with pdb because there's some black magic behind it to get the variable you are trying to trace, which requires file access. More importantly, it uses settrace which conflicts with pdb. So even I can understand your frustration, there's nothing I can do to make you happy at this point.

MR-hyj commented 1 year ago

Unfortunaly that's how watchpoints works now. It probably won't work with pdb because there's some black magic behind it to get the variable you are trying to trace, which requires file access. More importantly, it uses settrace which conflicts with pdb. So even I can understand your frustration, there's nothing I can do to make you happy at this point.

🤣pitty for pdb not having a watch like gdb.