Skip to content

remote debug: is it possible turn around client/server roles? #1942

@agroszer

Description

@agroszer

Hi,

Remote debugging works at the moment like the debugged app/process/script listens for the connection (is the server) and VS Code connects (is the client), right?

Is there any way to turn this around? VS Code listening and doing debugpy.connect() ? I found references in docs for debugpy.connect() but nothing for the VS Code side.

The thing is we have more containers with python code and it will be a pain to setup debugging this way in all (at the same time).
Port 5678 can be mapped to a single container at the same time.
With Komodo IDE the solution was that the IDE was listening for connections and the client dbgp initiated the connection.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions