Skip to content

Unable to Debug through Remote SSH Tunnel #10881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
koskorya opened this issue Mar 31, 2020 · 1 comment
Closed

Unable to Debug through Remote SSH Tunnel #10881

koskorya opened this issue Mar 31, 2020 · 1 comment
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@koskorya
Copy link

Environment data

  • VS Code version: 1.43.2
  • Extension version (available under the Extensions sidebar): 2020.3.69010
  • OS and version: Mac Catalina 10.15.4 SSH=> Ubuntu 16.04.6 LTS
  • Python version (& distribution if applicable, e.g. Anaconda): 3.5
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
  • Relevant/affected Python packages and their versions: NA
  • Relevant/affected Python-related VS Code extensions and their versions: Remote - SSH 0.51.0
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): NA
  • Value of the python.languageServer setting: NA

Expected behaviour

Debug session would run

Actual behaviour

Error below

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Remote connect via SSH
  2. Click Run and Debug for a Python File containing only a print statement
  3. Receive pop-up error:
    Session[1] timed out waiting for <debugpy.adapter.components.missing.<locals>.Missing object at 0x7f530b61c978> to connect

with a terminal error:

env DEBUGPY_LAUNCHER_PORT=34795 /nail/home/rkosko/venv/bin/python3 /nail/home/rkosko/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher /nail/home/rkosko/repos/shootie/app/test.py 
Traceback (most recent call last):
  File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/nail/home/rkosko/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/__main__.py", line 80, in <module>
    main()
  File "/nail/home/rkosko/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/__main__.py", line 42, in main
    launcher.connect(launcher_port)
  File "/nail/home/rkosko/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/lib/python/debugpy/no_wheels/debugpy/launcher/../../debugpy/launcher/__init__.py", line 27, in connect
    sock.connect(("127.0.0.1", launcher_port))
ConnectionRefusedError: [Errno 111] Connection refused

I believe the debugger should be executing /nail/home/rkosko/.vscode-server/extensions/ms-python.python-2020.3.69010/pythonFiles/ptvsd_launcher.py instead of the debugpy file.

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

User belongs to experiment group 'ShowPlayIcon - start'
User belongs to experiment group 'ShowExtensionSurveyPrompt - control'
User belongs to experiment group 'DebugAdapterFactory - experiment'
User belongs to experiment group 'PtvsdWheels37 - experiment'
User belongs to experiment group 'LS - enabled'
User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control'
User belongs to experiment group 'WebHostNotebook - control'
User belongs to experiment group 'CollectLSRequestTiming - control'
User belongs to experiment group 'CollectNodeLSRequestTiming - experiment'
> conda --version
> conda info --json
> pyenv root
> python3.7 -c "import sys;print(sys.executable)"
> python3.6 -c "import sys;print(sys.executable)"
> python3 -c "import sys;print(sys.executable)"
> python2 -c "import sys;print(sys.executable)"
> python -c "import sys;print(sys.executable)"
> ~/venv/bin/python3 -c "import sys;print(sys.executable)"
> ~/venv/bin/python3 -m pycodestyle --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/repos/shootie/app/test.py
cwd: ~/repos/shootie/app
> ~/venv/bin/python3 -m pycodestyle --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s ~/repos/shootie/app/test.py
cwd: ~/repos/shootie/app
Starting Microsoft Python language server.
##########Linting Output - pycodestyle##########
1,16,W,W292:no newline at end of file
> ~/venv/bin/python3 -c "import jupyter"
> ~/venv/bin/python3 -c "import notebook"
> conda --version

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXX
@koskorya koskorya added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Mar 31, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Mar 31, 2020
@int19h
Copy link

int19h commented Mar 31, 2020

Dupe of microsoft/debugpy#84

@int19h int19h closed this as completed Mar 31, 2020
@ghost ghost removed the triage label Mar 31, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants