[Python-ideas] pdb / bdb adding watchpoint ability
me at louie.lu
Wed May 24 23:57:09 EDT 2017
Current pdb and bdb didn't have the ability to create a watchpoint for variable.
Such in gdb, it have a series of watchpoint function*:
* watch : break when expression value changed
* rwatch : break when read value from expression
* awatch: breka when read or write value to expression
In Python, there have some problem in rwatch implement, that we
can't directly know what variable is been read or not. This will need
to used the dis module to get the bytecode and to know if the variable
is been read (load) or not.
The b.p.o issue is open at here:
And the current implement is at:
How do you think about this ability to put in pdb/bdb?
More information about the Python-ideas