80 lines
2.0 KiB
JSON
80 lines
2.0 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "Home Assistant",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "homeassistant",
|
|
"justMyCode": false,
|
|
"args": [
|
|
"--debug",
|
|
"-c",
|
|
"config"
|
|
],
|
|
"preLaunchTask": "Compile English translations"
|
|
},
|
|
{
|
|
"name": "Home Assistant (skip pip)",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "homeassistant",
|
|
"justMyCode": false,
|
|
"args": [
|
|
"--debug",
|
|
"-c",
|
|
"config",
|
|
"--skip-pip"
|
|
],
|
|
"preLaunchTask": "Compile English translations"
|
|
},
|
|
{
|
|
"name": "Home Assistant: Changed tests",
|
|
"type": "debugpy",
|
|
"request": "launch",
|
|
"module": "pytest",
|
|
"justMyCode": false,
|
|
"args": [
|
|
"--timeout=10",
|
|
"--picked"
|
|
],
|
|
},
|
|
{
|
|
// Debug by attaching to local Home Assistant server using Remote Python Debugger.
|
|
// See https://www.home-assistant.io/integrations/debugpy/
|
|
"name": "Home Assistant: Attach Local",
|
|
"type": "debugpy",
|
|
"request": "attach",
|
|
"connect": {
|
|
"port": 5678,
|
|
"host": "localhost"
|
|
},
|
|
"pathMappings": [
|
|
{
|
|
"localRoot": "${workspaceFolder}",
|
|
"remoteRoot": "."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
// Debug by attaching to remote Home Assistant server using Remote Python Debugger.
|
|
// See https://www.home-assistant.io/integrations/debugpy/
|
|
"name": "Home Assistant: Attach Remote",
|
|
"type": "debugpy",
|
|
"request": "attach",
|
|
"connect": {
|
|
"port": 5678,
|
|
"host": "homeassistant.local"
|
|
},
|
|
"pathMappings": [
|
|
{
|
|
"localRoot": "${workspaceFolder}",
|
|
"remoteRoot": "/usr/src/homeassistant"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
} |