-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
remote debugging - remote server is different OS from local server #44932
Comments
(Experimental duplicate detection) |
Sounds like a potential duplicate of the wsl issues, forwarding to @weinand |
@Loreton How does your launch config look like? |
my main.py code# ####################################
# #### R E M O T E - Linux OS #############
# ####################################
# ******** D E B U G *********************************
import ptvsd
ptvsd.enable_attach("my_secret", address=('localhost', 3000))
ptvsd.wait_for_attach() # only in the remote node
# ******** D E B U G *********************************
import sys; sys.dont_write_bytecode = True
import Source as Prj
myLibName = ['LnPyLib', 'DDNS_v2018-02-27.zip']
LnLib = Prj.SPE.LibPath(myLibName, fDEBUG=False)
# ####################################
# #### L O C A L Windows OS ############
# ####################################
# ******** D E B U G *********************************
import ptvsd
ptvsd.enable_attach("my_secret", address=('localhost', 3000))
# ptvsd.wait_for_attach() # only in the remote node
# ******** D E B U G *********************************
import sys; sys.dont_write_bytecode = True
import Source as Prj
myLibName = ['LnPyLib', 'DDNS_v2018-02-27.zip'] **_<=== BreakPoint_**
LnLib = Prj.SPE.LibPath(myLibName, fDEBUG=False) ProblemWhen I start the debugger I can STEP just the first two line and the I get an error regarding a missing feature of netifaces module (AF_PACKET). File "y:\GIT-REPO\Python3\DDNS_main_.py", line 79, in But this feature is missed just in windows module and not in linux one.
launch extract configuration "configurations": [
{
"name": "Python",
"type": "python",
"request": "launch",
"stopOnEntry": true,
"pythonPath": "${config:python.pythonPath}",
"program": "${file}",
"cwd": "${workspaceRoot}",
"env": {},
"envFile": "${workspaceRoot}/.env",
"debugOptions": [
// "WaitOnAbnormalExit",
// "WaitOnNormalExit",
"RedirectOutput"
],
"args": [
"update",
"--profile",
"LnPi23"
]
},
....
i have the following tunnel ssh -L 3001:destMaschine:3000
{
"name": "Attach (Remote Debug)",
"type": "python",
"request": "attach",
"localRoot": "${workspaceRoot}",
"remoteRoot": "/home/pi/GIT-REPO/Python3/DDNS",
"port": 3001,
"secret": "my_secret",
"host": "localhost"
}
] Kind Regards |
This issue was moved to microsoft/vscode-python#948 |
Steps to Reproduce:
2.run debug from windows to remote linux
When the local module (windows), in my case "netifaces", has different characteristics from remote module (linux) we get error reading the network interface caracteristics. Why? It should run remote code and not local code.
Regards
Does this issue occur when all extensions are disabled?: Yes/No
The text was updated successfully, but these errors were encountered: