From 994a8dc46353920e7efaaf927707a12f199a833d Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 9 Apr 2026 16:39:17 +0500 Subject: [PATCH 1/3] `package.json` - list missing `code` property --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index 74ac7f18..792e8fa1 100644 --- a/package.json +++ b/package.json @@ -523,6 +523,11 @@ "description": "Absolute path to the program.", "type": "string" }, + "code": { + "default": "", + "description": "Python code to execute in string form.\nExample: \"import debugpy; print(debugpy.__version__)\"", + "type": "string" + }, "purpose": { "default": [], "description": "Tells extension to use this configuration for test debugging, or when using debug-in-terminal command.", From d4188e2835da56199d53f6959ad41155919629ce Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 9 Apr 2026 18:18:53 +0500 Subject: [PATCH 2/3] types.ts - move comment describing `program` next to `program` I guess it was added by accident over `module` and was meant to be added for `program`. --- src/extension/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extension/types.ts b/src/extension/types.ts index 68a5f187..e64b9250 100644 --- a/src/extension/types.ts +++ b/src/extension/types.ts @@ -91,8 +91,8 @@ interface IKnownLaunchRequestArguments extends ICommonDebugArguments { sudo?: boolean; pyramid?: boolean; workspaceFolder?: string; - // An absolute path to the program to debug. module?: string; + // An absolute path to the program to debug. program?: string; python?: string; // Automatically stop target after launch. If not specified, target does not stop. From 6940d2c8cbb98b08ae4be3fdd5f727c0abb3e77b Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 9 Apr 2026 18:19:04 +0500 Subject: [PATCH 3/3] types.ts - document possible `code` property --- src/extension/types.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/extension/types.ts b/src/extension/types.ts index e64b9250..1b007add 100644 --- a/src/extension/types.ts +++ b/src/extension/types.ts @@ -94,6 +94,7 @@ interface IKnownLaunchRequestArguments extends ICommonDebugArguments { module?: string; // An absolute path to the program to debug. program?: string; + code?: string; python?: string; // Automatically stop target after launch. If not specified, target does not stop. stopOnEntry?: boolean;