Skip to content

Commit

Permalink
Merge pull request #478 from bj00rn/chore/prompt-for-remote-debug-host
Browse files Browse the repository at this point in the history
chore(vscode): prompt for remote debug host
  • Loading branch information
argoyle authored Jan 17, 2024
2 parents 54d58d4 + 923ae86 commit e25d6b2
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,34 @@
"name": "Python: Attach Remote",
"type": "python",
"request": "attach",
"port": 5678,
"host": "homeassistant.local",
"host": "${input:remoteDebugHost}",
"port": "${input:remoteDebugPort}",
"pathMappings": [
{
"localRoot": "${workspaceFolder}",
"remoteRoot": "/usr/src/homeassistant"
"remoteRoot": "${input:remoteRootDirectory}",
}
]
],
}
],
"inputs": [
{
"id": "remoteDebugHost",
"description": "Remote Home assistant host",
"type": "promptString",
"default": "homeassistant.local",
},
{
"id": "remoteDebugPort",
"description": "Remote PDB port",
"type": "promptString",
"default": "5678",
},
{
"id": "remoteRootDirectory",
"description": "Remote Home assistant root path (path of directory containing custom_components directory)",
"type": "promptString",
"default": "/config",
},
]
}

0 comments on commit e25d6b2

Please sign in to comment.