From 8a83436926849f8ea47c823b4afce26c85142d90 Mon Sep 17 00:00:00 2001 From: Ilia Babanov Date: Fri, 22 Nov 2024 12:09:36 +0100 Subject: [PATCH] Python launch config is deprecated debugpy is the new python debugger --- packages/databricks-vscode/package.json | 14 ++++++++++++++ packages/databricks-vscode/src/run/RunCommands.ts | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/packages/databricks-vscode/package.json b/packages/databricks-vscode/package.json index 3edb4d7ec..fc132aae7 100644 --- a/packages/databricks-vscode/package.json +++ b/packages/databricks-vscode/package.json @@ -879,6 +879,19 @@ } } } + }, + { + "type": "debugpy", + "configurationAttributes": { + "launch": { + "properties": { + "databricks": { + "type": "boolean", + "description": "Setup databricks environment variables and globals." + } + } + } + } } ], "configuration": [ @@ -957,6 +970,7 @@ }, "extensionDependencies": [ "ms-python.python", + "ms-python.debugpy", "ms-toolsai.jupyter", "redhat.vscode-yaml" ], diff --git a/packages/databricks-vscode/src/run/RunCommands.ts b/packages/databricks-vscode/src/run/RunCommands.ts index 0e1e2da93..7ae737e3b 100644 --- a/packages/databricks-vscode/src/run/RunCommands.ts +++ b/packages/databricks-vscode/src/run/RunCommands.ts @@ -139,7 +139,7 @@ export class RunCommands { } const config: DatabricksPythonDebugConfiguration = { program: targetResource.fsPath, - type: "python", + type: "debugpy", name: "Databricks Connect", request: "launch", databricks: true,