vscode-python: VS code remote debug connect fail.
From @AwayQuEM on June 20, 2017 3:29
Environment data
VS Code version: 1.13.1 on Mac
Python Extension version: 0.6.5 on mac
Python Version: 3.5.2
OS and version: OS X 10.12.5
ptvsd version:3.0.0 on Mac
Actual behavior
I still got 'Debug adapter process has terminated unexpectedly'
with ptvsd==3.0.0
Steps to reproduce:
- run test.py
- then run debug in vscode
Settings
Your launch.json (if dealing with debugger issues):
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach (Remote Debug)",
"type": "python",
"request": "attach",
"localRoot": "${workspaceRoot}",
"secret": "secet",
"port": 8010,
"host": "localhost",
"remoteRoot": "${workspaceRoot}"
}
]
}
Your settings.json:
{
"python.pythonPath": "/Users/away/wanjia/test_remote_debug/venv/bin/python",
"python.autoComplete.extraPaths": [
"/Users/away/wanjia/test_remote_debug/venv/lib/python3.5/site-packages"
],
"python.linting.enabled": false
}
Logs
Output from Console window
(Help->Developer Tools menu)
messageService.ts:125 Debug adapter process has terminated unexpectedly
e.doShow @ messageService.ts:125
e.show @ messageService.ts:104
g.onServerExit @ rawDebugSession.ts:517
(anonymous) @ rawDebugSession.ts:431
emitTwo @ events.js:111
emit @ events.js:191
__dirname.ChildProcess._handle.onexit @ internal/child_process.js:215
Code
import ptvsd
address = ('0.0.0.0', 8010)
ptvsd.enable_attach('secret', address)
ptvsd.wait_for_attach()
print('connected')
Copied from original issue: DonJayamanne/pythonVSCode#1039
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 24 (1 by maintainers)
@brettcannon the problem is the documentation indicates that later versions are supported, when this isn’t the case. I’ve created an issue to ensure this is fixed #514.
@dmk255 please use 3.0.0, anything later than that isn’t currently supported.