Skip to content

Support stopping / turning off / deactivating debugpy #1655

Description

@yang

Debugpy imposes a performance impact. Once you start debugpy in a process, the process is forever slow thereafter. So outside of the most performance insensitive of applications, deciding to use debugpy is not an easy decision—you are consigning that process to be killed.

A way to stop or disable debugpy would make it practical to use in many more settings (including production settings).

(Ideally this would be the default behavior—when you listen for debuggers, it doesn't actually do anything to make the program slower. But not sure if I'm missing anything there.)

Activity

  1. rchiodo commented on Dec 19, 2024

    @rchiodo
    Contributor

    Transferring to a discussion item for upvotes. I think with sys.monitoring support we might be able to do this. We'd just disable the monitor. Debugpy would still be in the process but it wouldn't be doing anything. Not zero overhead but minimal.

  2. locked and limited conversation to collaborators on Dec 19, 2024
  3. converted this issue into a discussion #1790 on Dec 19, 2024
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions