Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cannot define global variables in .pdbrc #119580

Closed as not planned
Closed as not planned
Assignees
gaogaotiantian
Labels
type-bugAn unexpected behavior, bug, or error
@Delengowski

Description

@Delengowski

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

Linked PRs

Metadata

Metadata

Labels

type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp