Skip to content

Commit 6d9ae06

Browse files
author
nightcityblade
committed
fix: document debug rules configuration
1 parent 668ea5b commit 6d9ae06

1 file changed

Lines changed: 46 additions & 1 deletion

File tree

package.json

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,29 @@
261261
"description": "If true, show and debug only user-written code. If false, show and debug all code, including library calls.",
262262
"type": "boolean"
263263
},
264+
"rules": {
265+
"description": "Overrides whether code matching a path glob or module name is treated as user code. Each rule requires include and either path or module.",
266+
"items": {
267+
"additionalProperties": false,
268+
"anyOf": [{ "required": ["path"] }, { "required": ["module"] }],
269+
"properties": {
270+
"include": {
271+
"type": "boolean"
272+
},
273+
"module": {
274+
"type": "string"
275+
},
276+
"path": {
277+
"type": "string"
278+
}
279+
},
280+
"required": [
281+
"include"
282+
],
283+
"type": "object"
284+
},
285+
"type": "array"
286+
},
264287
"listen": {
265288
"label": "Attach by listening for incoming socket connection from debugpy",
266289
"properties": {
@@ -527,6 +550,29 @@
527550
"description": "Debug only user-written code.",
528551
"type": "boolean"
529552
},
553+
"rules": {
554+
"description": "Overrides whether code matching a path glob or module name is treated as user code. Each rule requires include and either path or module.",
555+
"items": {
556+
"additionalProperties": false,
557+
"anyOf": [{ "required": ["path"] }, { "required": ["module"] }],
558+
"properties": {
559+
"include": {
560+
"type": "boolean"
561+
},
562+
"module": {
563+
"type": "string"
564+
},
565+
"path": {
566+
"type": "string"
567+
}
568+
},
569+
"required": [
570+
"include"
571+
],
572+
"type": "object"
573+
},
574+
"type": "array"
575+
},
530576
"logToFile": {
531577
"default": false,
532578
"description": "Enable logging of debugger events to a log file. This file can be found in the debugpy extension install folder.",
@@ -757,4 +803,3 @@
757803
"vscode-languageclient": "^8.0.2"
758804
}
759805
}
760-

0 commit comments

Comments
 (0)