You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API reference says debugpy.listen should return a (host, port) tuple, and indeed it does do that when calling debugpy.listen(0) or debugpy.listen(0, in_process_debug_adapter=False).
Makes it a little inconvenient when passing 0 as the port since I have no way to know what port is actually being listened on.
Steps to reproduce:
import debugpy
try:
host, port = debugpy.listen(5678, in_process_debug_adapter=True)
print(host, port)
except Exception as e:
print(f"Exception: {type(e)}: {e}")
Before creating a new issue, please check the FAQ to see if your question is answered there.
Environment data
1.8.5
Linux 6.8.0-40-generic #40~22.04.3-Ubuntu
3.8.19
VS Code
Actual behavior
Calling
debugpy.listen(0, in_process_debug_adapter=True)
returnsNone
.Expected behavior
The API reference says
debugpy.listen
should return a(host, port)
tuple, and indeed it does do that when callingdebugpy.listen(0)
ordebugpy.listen(0, in_process_debug_adapter=False)
.Makes it a little inconvenient when passing 0 as the port since I have no way to know what port is actually being listened on.
Steps to reproduce:
Outputs: "Exception: <class 'TypeError'>: cannot unpack non-iterable NoneType object"
The text was updated successfully, but these errors were encountered: