python-docker-tutorial icon indicating copy to clipboard operation
python-docker-tutorial copied to clipboard

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

Open pillomanWeb99 opened this issue 2 years ago • 0 comments

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

pillomanWeb99 avatar Aug 03 '23 03:08 pillomanWeb99