cocolog:93498093
Python Tips: PDB で property で break。 (JRF 8281)
JRF 2022年5月17日 (火)
<pre>
(Pdb) b A.bar.fget
</pre>
…とすればよい。
JRF2022/5/177436
こうしないと次のようなエラーが出る。
<pre>
(Pdb) b a.bar
*** The specified object 'a.bar' is not a function or was not found along sys.path.
</pre>
JRF2022/5/178745
<pre>
class A:
@property
def bar(self):
return "OK"
a = A()
import pdb; pdb.set_trace()
a.bar
</pre>
…として、a.bar に breakpoint を設定したい場合、
JRF2022/5/174526