mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +00:00
Add additional debug launch methods in launch.json (#44419)
This commit is contained in:
parent
cb82f5159e
commit
bf253819dd
38
.vscode/launch.json
vendored
38
.vscode/launch.json
vendored
@ -9,7 +9,41 @@
|
|||||||
"type": "python",
|
"type": "python",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "homeassistant",
|
"module": "homeassistant",
|
||||||
"args": ["--debug", "-c", "config"]
|
"args": [
|
||||||
|
"--debug",
|
||||||
|
"-c",
|
||||||
|
"config"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Debug by attaching to local Home Asistant server using Remote Python Debugger.
|
||||||
|
// See https://www.home-assistant.io/integrations/debugpy/
|
||||||
|
"name": "Home Assistant: Attach Local",
|
||||||
|
"type": "python",
|
||||||
|
"request": "attach",
|
||||||
|
"port": 5678,
|
||||||
|
"host": "localhost",
|
||||||
|
"pathMappings": [
|
||||||
|
{
|
||||||
|
"localRoot": "${workspaceFolder}",
|
||||||
|
"remoteRoot": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
},
|
||||||
|
{
|
||||||
|
// Debug by attaching to remote Home Asistant server using Remote Python Debugger.
|
||||||
|
// See https://www.home-assistant.io/integrations/debugpy/
|
||||||
|
"name": "Home Assistant: Attach Remote",
|
||||||
|
"type": "python",
|
||||||
|
"request": "attach",
|
||||||
|
"port": 5678,
|
||||||
|
"host": "homeassistant.local",
|
||||||
|
"pathMappings": [
|
||||||
|
{
|
||||||
|
"localRoot": "${workspaceFolder}",
|
||||||
|
"remoteRoot": "/usr/src/homeassistant"
|
||||||
|
}
|
||||||
|
],
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user