[PYTHON] When the variable name conflicts with the Devaga command in pdb

!use

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.

reference

https://docs.python.org/3/library/pdb.html

Recommended Posts

When the variable name conflicts with the Devaga command in pdb
When a local variable with the same name as a global variable is defined in the function
Behavior when returning in the with block
[Python] Get the variable name with str
When changing the table name with flask_migrate
Replace the directory name and the file name in the directory together with a Linux command.
How to get the variable name itself in python
Load the module with the same name in another location
Access the C structure field with the name reserved in Go.
Debugging with pdb in Python
Check in advance what happens when you execute the command
[sh] How to store the command execution result in a variable
In the python command python points to python3.8
Using cgo with the go command
Hit the top command with htop
Get the host name in Python
When the node disappears in rqt_graph
A story when a directory is buggy with the django-admin start project command in a virtual environment using Pipenv
Memorandum (Add name only to people with the same surname in the list)
How to hide the command prompt when running python in visual studio 2015
I set the environment variable with Docker and displayed it in Python
Ask for Pi with the bc command
Learn the design pattern "Command" in Python
Display Python 3 in the browser with MAMP
Notify Slack when the linux command finishes
When the target is Ubuntu 16.04 in Ansible
Try rewriting the file with the less command
Use the command previously entered in IDLE
When the previous graph remains in Seaborn
When I name the file flask.py in Flask, I get Import Error: cannot import name'Flask'
Execution order when multiple context managers are specified in the Python with statement
What I did when I got stuck in the time limit with lambda python
How to display in the entire window when setting the background image with tkinter