mirror of
https://github.com/home-assistant/core.git
synced 2025-07-26 22:57:17 +00:00
Fix vscode debug launch deprecation warning by swapping python to debugpy (#120866)
This commit is contained in:
parent
4289efb506
commit
94d010a4c0
36
.vscode/launch.json
vendored
36
.vscode/launch.json
vendored
@ -6,38 +6,52 @@
|
|||||||
"configurations": [
|
"configurations": [
|
||||||
{
|
{
|
||||||
"name": "Home Assistant",
|
"name": "Home Assistant",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "homeassistant",
|
"module": "homeassistant",
|
||||||
"justMyCode": false,
|
"justMyCode": false,
|
||||||
"args": ["--debug", "-c", "config"],
|
"args": [
|
||||||
|
"--debug",
|
||||||
|
"-c",
|
||||||
|
"config"
|
||||||
|
],
|
||||||
"preLaunchTask": "Compile English translations"
|
"preLaunchTask": "Compile English translations"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Home Assistant (skip pip)",
|
"name": "Home Assistant (skip pip)",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "homeassistant",
|
"module": "homeassistant",
|
||||||
"justMyCode": false,
|
"justMyCode": false,
|
||||||
"args": ["--debug", "-c", "config", "--skip-pip"],
|
"args": [
|
||||||
|
"--debug",
|
||||||
|
"-c",
|
||||||
|
"config",
|
||||||
|
"--skip-pip"
|
||||||
|
],
|
||||||
"preLaunchTask": "Compile English translations"
|
"preLaunchTask": "Compile English translations"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Home Assistant: Changed tests",
|
"name": "Home Assistant: Changed tests",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"module": "pytest",
|
"module": "pytest",
|
||||||
"justMyCode": false,
|
"justMyCode": false,
|
||||||
"args": ["--timeout=10", "--picked"],
|
"args": [
|
||||||
|
"--timeout=10",
|
||||||
|
"--picked"
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Debug by attaching to local Home Assistant server using Remote Python Debugger.
|
// Debug by attaching to local Home Assistant server using Remote Python Debugger.
|
||||||
// See https://www.home-assistant.io/integrations/debugpy/
|
// See https://www.home-assistant.io/integrations/debugpy/
|
||||||
"name": "Home Assistant: Attach Local",
|
"name": "Home Assistant: Attach Local",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
|
"connect": {
|
||||||
"port": 5678,
|
"port": 5678,
|
||||||
"host": "localhost",
|
"host": "localhost"
|
||||||
|
},
|
||||||
"pathMappings": [
|
"pathMappings": [
|
||||||
{
|
{
|
||||||
"localRoot": "${workspaceFolder}",
|
"localRoot": "${workspaceFolder}",
|
||||||
@ -49,10 +63,12 @@
|
|||||||
// Debug by attaching to remote Home Assistant server using Remote Python Debugger.
|
// Debug by attaching to remote Home Assistant server using Remote Python Debugger.
|
||||||
// See https://www.home-assistant.io/integrations/debugpy/
|
// See https://www.home-assistant.io/integrations/debugpy/
|
||||||
"name": "Home Assistant: Attach Remote",
|
"name": "Home Assistant: Attach Remote",
|
||||||
"type": "python",
|
"type": "debugpy",
|
||||||
"request": "attach",
|
"request": "attach",
|
||||||
|
"connect": {
|
||||||
"port": 5678,
|
"port": 5678,
|
||||||
"host": "homeassistant.local",
|
"host": "homeassistant.local"
|
||||||
|
},
|
||||||
"pathMappings": [
|
"pathMappings": [
|
||||||
{
|
{
|
||||||
"localRoot": "${workspaceFolder}",
|
"localRoot": "${workspaceFolder}",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user