Description
Bug report
Bug description:
#116660 closed gh-90095 to properly handle commands
issued through -c
or .pdbrc
. The pdb
documentation also speaks of convenience variables which is a debugging global variable. I was expecting to be able to define a variable starting with $
as defined in the documentation below, and make manipulations to that variable through commands
in a .pdbrc
, but doing the following $_capture_list = []
in .pdbrc
issues a syntax error
To set a temporary global variable, use a convenience variable. A convenience variable is a variable whose name starts with $. For example, $foo = 1 sets a global variable $foo which you can use in the debugger session. The convenience variables are cleared when the program resumes execution so it’s less likely to interfere with your program compared to using normal variables like foo = 1.
CPython versions tested on:
3.11
Operating systems tested on:
Linux