From 9105542bab661c4c58781851388c8208fb520c60 Mon Sep 17 00:00:00 2001
From: proohit <46965017+proohit@users.noreply.github.com>
Date: Fri, 21 Feb 2025 00:32:17 +0100
Subject: [PATCH] Add debug launch configuration for current open test file
 (#137177)

---
 .vscode/launch.json | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.vscode/launch.json b/.vscode/launch.json
index 7b77a1c9bfd..15cdb9fb625 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -42,6 +42,14 @@
         "--picked"
       ],
     },
+    {
+      "name": "Home Assistant: Debug Current Test File",
+      "type": "debugpy",
+      "request": "launch",
+      "module": "pytest",
+      "console": "integratedTerminal",
+      "args": ["-vv", "${file}"]
+    },
     {
       // Debug by attaching to local Home Assistant server using Remote Python Debugger.
       // See https://www.home-assistant.io/integrations/debugpy/
@@ -77,4 +85,4 @@
       ]
     }
   ]
-}
\ No newline at end of file
+}
-- 
GitLab