diff --git a/packages/databricks-vscode/package.json b/packages/databricks-vscode/package.json index ed5099baf..010b04198 100644 --- a/packages/databricks-vscode/package.json +++ b/packages/databricks-vscode/package.json @@ -963,6 +963,19 @@ } } } + }, + { + "type": "debugpy", + "configurationAttributes": { + "launch": { + "properties": { + "databricks": { + "type": "boolean", + "description": "Setup databricks environment variables and globals." + } + } + } + } } ], "configuration": [ @@ -1041,6 +1054,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,