Skip to content

pdb should check if the executing file is modified and warn users #111051

Closed

Description

@gaogaotiantian

Feature or enhancement

Proposal:

It's possible that the file is modified during debugging, which would definitely confuse users - the source will not match the execution anymore.

There's no perfect solution under such circunstances, but we should at least warn users that this is happening.

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

Activity

  1. added
    stdlibStandard Library Python modules in the Lib/ directory
    on Nov 27, 2023
  2. added a commit that references this issue on Jan 25, 2024
  3. added a commit that references this issue on Feb 11, 2024
  4. reopened this on Jul 18, 2024
  5. ambv commented on Jul 18, 2024

    @ambv
    Contributor

    I often have an issue with the test for this when running on a RAM disk formatted with HFS+. That file system only has 1-second mtime resolution, so the test often doesn't register an mtime change and intermittently fails. Fix incoming.

  6. added 3 commits that reference this issue on Jul 18, 2024
  7. added a commit that references this issue on Jul 22, 2024
  8. added a commit that references this issue on Aug 12, 2024
  9. added a commit that references this issue on Sep 2, 2024
  10. gaogaotiantian commented on Sep 23, 2024

    @gaogaotiantian
    MemberAuthor

    Hi @ambv , is this fixed now? Can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibStandard Library Python modules in the Lib/ directorytype-featureA feature request or enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions