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
Extension version (available under the Extensions sidebar): 2020.4.74986
OS and version: centos7
Python version (& distribution if applicable, e.g. Anaconda): 2.7.5
Expected behaviour
launch debug Current File success
Actual behaviour
launch debug Current File connection refused
Steps to reproduce:
Modify the localhost in /etc/hosts that is not 127.0.0.1, such as eth0 ip.Then launch debug.
My analysis and suggestions
Because localhost in /etc/hosts file is not 127.0.0.1,
Therefore, DebugAdapter is not listening on the address 127.0.0.1,
Therefore, "ptvsd --client --host localhost" cannot connect to DebugAdapter.
It is recommended that the DebugAdapter listen at 0.0.0.0.
The text was updated successfully, but these errors were encountered:
It sounds like you're using ptvsd 4.x for the debugger. Can you please try with debugpy? Take a look at microsoft/ptvsd#2104 to see the various possible reasons why it's not enabled for you - most likely it's because of telemetry opt-out.
It sounds like you're using ptvsd 4.x for the debugger. Can you please try with debugpy? Take a look at microsoft/ptvsd#2104 to see the various possible reasons why it's not enabled for you - most likely it's because of telemetry opt-out.
Yes, I'm using ptvsd. As you suggested, it works when I switch to debugpy.
Environment data
Expected behaviour
launch debug Current File success
Actual behaviour
launch debug Current File connection refused
Steps to reproduce:
Modify the localhost in /etc/hosts that is not 127.0.0.1, such as eth0 ip.Then launch debug.
My analysis and suggestions
Because localhost in /etc/hosts file is not 127.0.0.1,
Therefore, DebugAdapter is not listening on the address 127.0.0.1,
Therefore, "ptvsd --client --host localhost" cannot connect to DebugAdapter.
It is recommended that the DebugAdapter listen at 0.0.0.0.
The text was updated successfully, but these errors were encountered: