Skip to content

Issue with debugpy.listen("0,0,0,0",5678) In windows 11 #4

@pillomanWeb99

Description

@pillomanWeb99

When I try to run the debugger I get an error, in this line:

import debugpy
debugpy.listen("0,0,0,0",5678)

I change to:

debugpy.listen(5678)

And finally, it works ok.

This was taken verbatim from the help of the debugpy.listen function, which says:"
(function) def listen(
__endpoint: Endpoint | int,
*,
in_process_debug_adapter: bool = False
) -> Endpoint
Starts a debug adapter debugging this process, that listens for incoming socket connections from clients on the specified address.

__endpoint must be either a (host, port) tuple as defined by the standard socket module for the AF_INET address family, or a port number. If only the port is specified, host is "127.0.0.1"."

My environment:

OS: Windows 11 PRO
Docker version: 24.0.2, build cb74dfc
VSCode: 1.80.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions