Skip to content

Use the normal code path for breakpoint commands in pdb #124400

@gaogaotiantian

Description

@gaogaotiantian

Feature or enhancement

Proposal:

Currently the structure to support breakpoint commands is too heavy. We need to keep self.commands_doprompt and self.commands_silent which are not necessary. Also bp_commands now use its own loop to execute commands - we should avoid this as much as possible because this is a duplicate path that may have dark corners. For example, if in the future we have commands that insert commands in the beginning of the cmdqueue.

We should avoid having many exceptions for this command and use the existing structure to run the command in breakpoint commands.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions