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.", diff --git a/src/extension/types.ts b/src/extension/types.ts index 68a5f187..1b007add 100644 --- a/src/extension/types.ts +++ b/src/extension/types.ts @@ -91,9 +91,10 @@ 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; + code?: string; python?: string; // Automatically stop target after launch. If not specified, target does not stop. stopOnEntry?: boolean;