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
Copy file name to clipboardExpand all lines: debugProtocol.json
+95-2Lines changed: 95 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -193,7 +193,7 @@
193
193
"reason": {
194
194
"type": "string",
195
195
"description": "The reason for the event.\nFor backward compatibility this string is shown in the UI if the 'description' attribute is missing (but it must not be translated).",
"description": "Replaces all existing instruction breakpoints. Typically, instruction breakpoints would be set from a diassembly window. \nTo clear all instruction breakpoints, specify an empty array.\nWhen an instruction breakpoint is hit, a 'stopped' event (with reason 'instruction breakpoint') is generated.\nClients should only call this request if the capability 'supportsInstructionBreakpoints' is true.",
"description": "Arguments for 'setInstructionBreakpoints' request",
1380
+
"properties": {
1381
+
"breakpoints": {
1382
+
"type": "array",
1383
+
"items": {
1384
+
"$ref": "#/definitions/InstructionBreakpoint"
1385
+
},
1386
+
"description": "The instruction references of the breakpoints"
1387
+
}
1388
+
},
1389
+
"required": ["breakpoints"]
1390
+
},
1391
+
"SetInstructionBreakpointsResponse": {
1392
+
"allOf": [
1393
+
{ "$ref": "#/definitions/Response" },
1394
+
{
1395
+
"type": "object",
1396
+
"description": "Response to 'setInstructionBreakpoints' request",
1397
+
"properties": {
1398
+
"body": {
1399
+
"type": "object",
1400
+
"properties": {
1401
+
"breakpoints": {
1402
+
"type": "array",
1403
+
"items": {
1404
+
"$ref": "#/definitions/Breakpoint"
1405
+
},
1406
+
"description": "Information about the breakpoints. The array elements correspond to the elements of the 'breakpoints' array."
1407
+
}
1408
+
},
1409
+
"required": [ "breakpoints" ]
1410
+
}
1411
+
},
1412
+
"required": [ "body" ]
1413
+
}]
1414
+
},
1415
+
1359
1416
"ContinueRequest": {
1360
1417
"allOf": [ { "$ref": "#/definitions/Request" }, {
1361
1418
"type": "object",
@@ -2860,6 +2917,10 @@
2860
2917
"supportsSteppingGranularity": {
2861
2918
"type": "boolean",
2862
2919
"description": "The debug adapter supports stepping granularities (argument 'granularity') for the stepping requests."
2920
+
},
2921
+
"supportsInstructionBreakpoints": {
2922
+
"type": "boolean",
2923
+
"description": "The debug adapter supports adding breakpoints based on instruction references."
2863
2924
}
2864
2925
}
2865
2926
},
@@ -3377,9 +3438,33 @@
3377
3438
"required": [ "dataId" ]
3378
3439
},
3379
3440
3441
+
"InstructionBreakpoint": {
3442
+
"type": "object",
3443
+
"description": "Properties of a breakpoint passed to the setInstructionBreakpoints request",
3444
+
"properties": {
3445
+
"instructionReference": {
3446
+
"type": "string",
3447
+
"description": "The instruction reference of the breakpoint.\nThis should be a memory or instruction pointer reference from an EvaluateResponse, Variable, StackFrame, GotoTarget, or Breakpoint."
3448
+
},
3449
+
"offset": {
3450
+
"type": "integer",
3451
+
"description": "An optional offset from the instruction reference.\nThis can be negative."
3452
+
},
3453
+
"condition": {
3454
+
"type": "string",
3455
+
"description": "An optional expression for conditional breakpoints.\nIt is only honored by a debug adapter if the capability 'supportsConditionalBreakpoints' is true."
3456
+
},
3457
+
"hitCondition": {
3458
+
"type": "string",
3459
+
"description": "An optional expression that controls how many hits of the breakpoint are ignored.\nThe backend is expected to interpret the expression as needed.\nThe attribute is only honored by a debug adapter if the capability 'supportsHitConditionalBreakpoints' is true."
3460
+
}
3461
+
},
3462
+
"required": [ "instructionReference" ]
3463
+
},
3464
+
3380
3465
"Breakpoint": {
3381
3466
"type": "object",
3382
-
"description": "Information about a Breakpoint created in setBreakpointsor setFunctionBreakpoints.",
3467
+
"description": "Information about a Breakpoint created in setBreakpoints, setFunctionBreakpoints, setInstructionBreakpoints, or setDataBreakpoints.",
3383
3468
"properties": {
3384
3469
"id": {
3385
3470
"type": "integer",
@@ -3412,6 +3497,14 @@
3412
3497
"endColumn": {
3413
3498
"type": "integer",
3414
3499
"description": "An optional end column of the actual range covered by the breakpoint.\nIf no end line is given, then the end column is assumed to be in the start line."
3500
+
},
3501
+
"instructionReference": {
3502
+
"type": "string",
3503
+
"description": "An optional memory reference to where the breakpoint is set."
3504
+
},
3505
+
"offset": {
3506
+
"type": "integer",
3507
+
"description": "An optional offset from the instruction reference.\nThis can be negative."
0 commit comments