Skip to content

Commit 421eabb

Browse files
authored
package.json - list missing code property (#997)
* `package.json` - list missing `code` property * 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`. * types.ts - document possible `code` property
1 parent b682f5d commit 421eabb

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,11 @@
523523
"description": "Absolute path to the program.",
524524
"type": "string"
525525
},
526+
"code": {
527+
"default": "",
528+
"description": "Python code to execute in string form.\nExample: \"import debugpy; print(debugpy.__version__)\"",
529+
"type": "string"
530+
},
526531
"purpose": {
527532
"default": [],
528533
"description": "Tells extension to use this configuration for test debugging, or when using debug-in-terminal command.",

src/extension/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,10 @@ interface IKnownLaunchRequestArguments extends ICommonDebugArguments {
9191
sudo?: boolean;
9292
pyramid?: boolean;
9393
workspaceFolder?: string;
94-
// An absolute path to the program to debug.
9594
module?: string;
95+
// An absolute path to the program to debug.
9696
program?: string;
97+
code?: string;
9798
python?: string;
9899
// Automatically stop target after launch. If not specified, target does not stop.
99100
stopOnEntry?: boolean;

0 commit comments

Comments
 (0)