python - print values in pdb -
this first time use pdb debugger in python. please pardon me if dumb question.
when trace function, inside function print values of variable names underscore in beginning, eg. p __seqlen
. keeps showing attributeerror: attributeerror("converter instance has no attribute '__seqlen'",)
tried use p self.__seqlen
. not working well. may ask how can print values? in advanced.
p locals() p globals()
could help.
Comments
Post a Comment