You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[lldb-dap] Move targetId and debuggerId into a session property (#175930)
This makes it clear the fields required for attaching to an existing
debug session.
It also makes it easier to check mutually exclusive fields required to
attach.
(cherry picked from commit 6977e68)
Copy file name to clipboardExpand all lines: lldb/tools/lldb-dap/extension/package.json
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -795,9 +795,21 @@
795
795
"description": "Custom commands that are executed instead of attaching to a process ID or to a process by name. These commands may optionally create a new target and must perform an attach. A valid process must exist after these commands complete or the \"attach\" will fail.",
796
796
"default": []
797
797
},
798
-
"targetId": {
799
-
"type": "number",
800
-
"description": "The globally unique target id to attach to. Used when a target is dynamically created."
798
+
"session": {
799
+
"type": "object",
800
+
"properties": {
801
+
"targetId": {
802
+
"type": "number",
803
+
"description": "The globally unique target id to attach to. Use when a target is dynamically created."
804
+
},
805
+
"debuggerId": {
806
+
"type": "number",
807
+
"description": "ID of an existing debugger instance to use."
808
+
},
809
+
"additionalProperties": false,
810
+
"required": ["targetId", "debuggerId"]
811
+
},
812
+
"description": "This property is Experimental.\nAttach to an existing debugging session.\nAdded in version 22.0."
0 commit comments