Skip to content

Check if wait_for_client() works when trying to attach to PID #333

Closed

Description

@luabud

When not calling listen

Activity

  1. fabioz commented on Jul 16, 2020

    @fabioz
    Collaborator

    It doesn't work as listen or connect must be called first...

    The workaround is doing something as:

    import debugpy
    import time
    while not debugpy.is_client_connected():
        time.sleep(.5)
        print('.')
    debugpy.wait_for_client()  # this is still needed to make sure the configuration is synchronized.
    
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