Add example of ssh to remote host
This commit is contained in:
parent
4cb4b814a1
commit
82db32780b
2 changed files with 41 additions and 2 deletions
|
|
@ -634,7 +634,9 @@ Vimspector then orchestrates the various tools to set you up.
|
|||
// %CMD% replaced with the remote-cmdLine configured in the launch
|
||||
// configuration. (mandatory)
|
||||
"runCommand": [
|
||||
"python", "-m", "debugpy", "--listen", "0.0.0.0:${port}",
|
||||
"python", "-m", "debugpy",
|
||||
"--listen", "0.0.0.0:${port}",
|
||||
"--wait-for-client",
|
||||
"%CMD%"
|
||||
]
|
||||
|
||||
|
|
@ -848,7 +850,9 @@ port.
|
|||
// %CMD% replaced with the remote-cmdLine configured in the launch
|
||||
// configuration. (mandatory)
|
||||
"runCommand": [
|
||||
"python", "-m", "debugpy", "--listen", "0.0.0.0:${port}",
|
||||
"python", "-m", "debugpy",
|
||||
"--listen", "0.0.0.0:${port}",
|
||||
"--wait-for-client",
|
||||
"%CMD%"
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,24 @@
|
|||
},
|
||||
"delay": "5000m"
|
||||
}
|
||||
},
|
||||
"python-remote-ssh": {
|
||||
"variables": {
|
||||
"port": "8765"
|
||||
},
|
||||
"port": "${port}",
|
||||
"host": "${host}",
|
||||
"launch": {
|
||||
"remote": {
|
||||
"host": "${host}",
|
||||
"account": "${account}",
|
||||
"runCommand": [
|
||||
"python3", "-m", "debugpy", "--listen", "0.0.0.0:${port}",
|
||||
"--wait-for-client",
|
||||
"%CMD%"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
|
|
@ -164,6 +182,23 @@
|
|||
"stopOnEntry": false,
|
||||
"console": "integratedTerminal"
|
||||
}
|
||||
},
|
||||
"run - remote host": {
|
||||
"adapter": "python-remote-ssh",
|
||||
"remote-cmdLine": [
|
||||
"${remoteRoot}/main.py"
|
||||
],
|
||||
"remote-request": "launch",
|
||||
"configuration": {
|
||||
"request": "attach",
|
||||
"redirectOutput": true,
|
||||
"pathMappings": [
|
||||
{
|
||||
"localRoot": "${workspaceRoot}",
|
||||
"remoteRoot": "${remoteRoot}"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue