Skip to content

Support debugger #67

Description

@apoorvkh
No description provided.

Activity

  1. apoorvkh commented on Nov 3, 2024

    @apoorvkh
    OwnerAuthor
  2. apoorvkh commented on Feb 16, 2025

    @apoorvkh
    OwnerAuthor

    https://code.visualstudio.com/docs/python/debugging#_remote-script-debugging-with-ssh

    Basically the way this would work:

    • Selected worker (which the debugger will connect to) will start the debugging server (and wait for the connection), right before executing worker_args.function(). All workers should also set a barrier().
    import debugpy
    
    local_ip: str
    random_port: int
    
    debugpy.listen((local_ip, random_port))
    debugpy.wait_for_client()
    • Launcher should start a TCP tunnel (via SSH forwarding) to that port. Launcher should print the local mapped port.
    • User can attach Python debugger in vscode to that local port.
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

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions