Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.4k
Description
Bug report
Bug description:
#116660 closedgh-90095 to properly handlecommands
issued through-c
or.pdbrc
. Thepdb
documentation also speaks ofconvenience 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 throughcommands
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