If the variable name in pdb is the same as the debugger command (eg h (elp), w (here), n (ext), etc.) and there is a conflict, the debugger interprets it as a debugger command instead of a variable.
Therefore, if you enter !
As the prefix of the variable name you want to display, it will be evaluated as a variable.
If you want to display the variable n
> !n
And.
https://docs.python.org/3/library/pdb.html
Recommended Posts