-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
850 lines (849 loc) · 37.7 KB
/
Copy pathpackage.json
File metadata and controls
850 lines (849 loc) · 37.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
{
"publisher": "dkattan",
"name": "copilot-breakpoint-debugger",
"displayName": "Copilot Breakpoint Debugger",
"version": "0.0.41",
"_versionComment": "Version is auto-generated by the CI auto-release workflow. Manual edits are overwritten.",
"description": "Use GitHub Copilot to automate starting, inspecting and resuming VS Code debug sessions with conditional breakpoints, exact numeric hit counts (hitCount), logpoints, and capture actions that interpolate variables inside log messages.",
"license": "MIT",
"homepage": "https://github.com/dkattan/Copilot-Breakpoint-Debugger#readme",
"repository": {
"type": "git",
"url": "https://github.com/dkattan/Copilot-Breakpoint-Debugger"
},
"bugs": {
"url": "https://github.com/dkattan/Copilot-Breakpoint-Debugger/issues"
},
"keywords": [
"copilot",
"debug",
"breakpoint",
"variables",
"stack",
"resume",
"ai"
],
"categories": [
"Debuggers",
"Other"
],
"main": "./dist/extension.js",
"icon": "images/icon.png",
"engines": {
"vscode": "^1.108.1"
},
"activationEvents": [
"onLanguageModelTools",
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "copilotBreakpointDebugger.startAndWaitManual",
"title": "Copilot Breakpoint Debugger: Manual Start & Wait",
"category": "Copilot Breakpoint Debugger"
},
{
"command": "copilotBreakpointDebugger.setDefaultLaunchConfiguration",
"title": "Copilot Breakpoint Debugger: Set Default Launch Configuration",
"category": "Copilot Breakpoint Debugger"
},
{
"command": "copilotBreakpointDebugger.insertSampleStartDebuggerPayload",
"title": "Copilot Breakpoint Debugger: Insert Sample Start Payload",
"category": "Copilot Breakpoint Debugger"
}
],
"configuration": {
"title": "Copilot Breakpoint Debugger",
"properties": {
"copilot-debugger.defaultLaunchConfiguration": {
"type": "string",
"default": "",
"description": "Name of the default launch configuration to use when starting the debugger"
},
"copilot-debugger.entryTimeoutSeconds": {
"type": "integer",
"default": 60,
"description": "Timeout in seconds waiting for initial entry stop after launching (before first user breakpoint). Supports long startup/build times; must be > 0."
},
"copilot-debugger.captureMaxVariables": {
"type": "integer",
"default": 40,
"description": "Maximum number of variables auto-captured when a breakpoint onHit=captureAndContinue uses variable='*' (capture-all mode)."
},
"copilot-debugger.serverReadyEnabled": {
"type": "boolean",
"default": true,
"description": "Enable serverReady automation (trigger + breakpointTrigger). When disabled, provided serverReady payloads are ignored."
},
"copilot-debugger.serverReadyDefaultActionType": {
"type": "string",
"enum": [
"httpRequest",
"shellCommand",
"vscodeCommand"
],
"default": "httpRequest",
"description": "Preferred serverReady breakpointTrigger type surfaced in samples and quick insert command."
},
"copilot-debugger.maxBuildErrors": {
"type": "integer",
"default": 5,
"description": "Maximum number of build diagnostics (from problem matchers) to include in error messages when debug session fails to start.",
"scope": "resource"
},
"copilot-debugger.maxOutputLines": {
"type": "integer",
"default": 50,
"description": "Maximum number of output lines (stderr/stdout) to buffer per debug session for runtime error reporting.",
"scope": "resource"
},
"copilot-debugger.maxOutputChars": {
"type": "integer",
"default": 8192,
"description": "Maximum number of characters returned by Copilot debugger tools (tool output is truncated with a suffix when exceeded).",
"scope": "resource"
},
"copilot-debugger.consoleLogLevel": {
"type": "string",
"enum": [
"trace",
"debug",
"info",
"warn",
"error",
"off"
],
"default": "info",
"description": "Controls how verbosely logs are mirrored to the developer console (Output panel always receives every log; this only gates console.* mirroring). Changes take effect immediately without reloading.",
"scope": "window"
},
"copilot-debugger.enableTraceLogging": {
"type": "boolean",
"default": false,
"description": "Emit verbose Debug Adapter Protocol trace logs to the output channel for troubleshooting.",
"scope": "window"
},
"copilot-debugger.supportsMultipleDebugSessions": {
"type": "boolean",
"default": false,
"description": "Whether this workspace supports running multiple simultaneous debug sessions. If false, tools that might create sessions will follow existingSessionBehavior.",
"scope": "window"
},
"copilot-debugger.existingSessionBehavior": {
"type": "string",
"enum": [
"useExisting",
"stopExisting",
"ignoreAndCreateNew"
],
"default": "useExisting",
"description": "Behavior when a tool is asked to start a debug session but one or more sessions already exist: useExisting (requires exactly one unless sessionId is provided), stopExisting (terminate existing sessions first), or ignoreAndCreateNew (only valid when supportsMultipleDebugSessions=true).",
"scope": "window"
}
}
},
"languageModelTools": [
{
"name": "startDebugSessionWithBreakpoints",
"displayName": "Start Debugger",
"toolReferenceName": "startDebugSessionWithBreakpoints",
"canBeReferencedInPrompt": true,
"userDescription": "Start a debug session, set breakpoints, and wait until a breakpoint is hit. Supports onHit behaviors: break (pause), captureAndContinue (collect variables then auto-resume), captureAndStopDebugging (terminate after hit). For capture actions, the tool automatically steps once (F10 / DAP 'next') before capturing variables to avoid the common pre-assignment value trap. Supports autoStepOver to capture variables before and after a single step-over (useful for assignments/invocations). Default mode is singleShot: the tool terminates the session before returning so the model cannot accidentally run external curl/browser probes against a paused debuggee. If you need an interactive paused workflow, set mode=inspect.",
"modelDescription": "Start a debug session using the configured default launch configuration or an explicitly provided configurationName. Auto-selects sole launch config when none specified and no default setting is present. Defaults to 'singleShot' mode (safest), which runs the session, hits a breakpoint, collects data, and terminates automatically. Use 'inspect' mode to pause at a breakpoint for interactive debugging; while paused, use debugger tools (evaluateExpression) instead of external requests (curl) which may block. Supports 'serverReady' to automatically wait for app startup and trigger a request to hit your breakpoints. If the user specifically wants to fire an HTTP request / shell command into a breakpoint (\"trigger\" a breakpoint), prefer the Trigger Breakpoint tool (triggerBreakpoint) which is designed for start+trigger+wait flows.",
"inputSchema": {
"type": "object",
"properties": {
"workspaceFolder": {
"type": "string",
"description": "Absolute path of an OPEN workspace folder (required)."
},
"configurationName": {
"type": "string",
"description": "Name of launch configuration to start. If omitted uses copilot-debugger.defaultLaunchConfiguration or auto-selects sole configuration if exactly one exists."
},
"mode": {
"type": "string",
"enum": [
"singleShot",
"inspect"
],
"description": "Tool mode. singleShot (default): terminate the session before returning. inspect: allow returning while paused for iterative inspection/resume workflows."
},
"watcherTaskLabel": {
"type": "string",
"description": "Optional task label to auto-start before launching the debugger (intended for long-running watcher tasks like 'dotnet watch run')."
},
"breakpointConfig": {
"type": "object",
"properties": {
"breakpoints": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "File path relative to workspace or absolute."
},
"code": {
"type": "string",
"description": "Exact code snippet (substring) to break on. The tool will search the file and set breakpoints on every matching line."
},
"variable": {
"type": "string",
"description": "Required variable name to focus in output (case-sensitive). Use '*' to opt into capture-all (auto-capture up to captureMaxVariables)."
},
"onHit": {
"type": "string",
"enum": [
"break",
"captureAndContinue",
"captureAndStopDebugging"
],
"description": "Breakpoint onHit: break pauses and returns; captureAndContinue collects variables & interpolated log messages then resumes; captureAndStopDebugging collects variables then terminates session after hit."
},
"condition": {
"type": "string",
"description": "Optional conditional expression (e.g., 'x > 5'). Breakpoint only triggers when condition evaluates to true."
},
"hitCount": {
"type": "integer",
"description": "Exact numeric hit count (3 means pause on 3rd hit)."
},
"logMessage": {
"type": "string",
"description": "Optional log message for logpoint or capture action. Uses curly braces for variable interpolation (e.g., 'Value is {x}'). If action=capture, interpolated messages are returned as capturedLogMessages."
},
"autoStepOver": {
"type": "boolean",
"description": "If true, capture variables, step over once (DAP 'next'), then capture again. Useful for capturing before/after around an assignment or invocation in one shot."
},
"reasonCode": {
"type": "string",
"description": "Internal telemetry-friendly reason/tag (not surfaced in UI)."
}
},
"required": [
"path",
"code",
"onHit",
"variable"
]
},
"description": "Breakpoints to add before starting session."
},
"breakpointTrigger": {
"type": "object",
"description": "Optional breakpoint trigger executed when serverReady conditions are satisfied. Flat schema with discriminator 'type'. Blocking behavior: shellCommand runs in a terminal and may block if it performs a request that hits a break breakpoint; httpRequest is executed by the tool with timeout handling and is recommended for triggering breakpoints.",
"properties": {
"type": {
"type": "string",
"enum": [
"httpRequest",
"shellCommand",
"vscodeCommand"
],
"description": "Action type discriminator. Prefer httpRequest to trigger requests intended to hit breakpoints. shellCommand is allowed (including curl), but may block if it triggers a break breakpoint."
},
"url": {
"type": "string",
"description": "Target URL (httpRequest)."
},
"method": {
"type": "string",
"description": "HTTP method (default GET)."
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
},
"description": "Optional HTTP headers."
},
"body": {
"type": "string",
"description": "Optional HTTP request body."
},
"shellCommand": {
"type": "string",
"description": "Shell command executed in a new terminal (shellCommand). Allowed to run curl/wget/etc, but may block if it triggers a break breakpoint."
},
"command": {
"type": "string",
"description": "VS Code command ID (vscodeCommand)."
},
"args": {
"type": "array",
"description": "Optional VS Code command arguments.",
"items": {
"type": "string"
}
}
},
"required": [
"type"
]
}
}
},
"serverReady": {
"type": "object",
"description": "Optional server readiness trigger. When provided, the tool waits for readiness (pattern or breakpoint) and then executes breakpointConfig.breakpointTrigger (if provided).",
"properties": {
"path": {
"type": "string",
"description": "Readiness breakpoint file path (relative or absolute)."
},
"code": {
"type": "string",
"description": "Code snippet (substring) used to locate a 1-based line in the file. Must be present on the intended line."
},
"pattern": {
"type": "string",
"description": "Regex pattern matched against debug/task output for readiness."
}
}
}
},
"required": [
"workspaceFolder",
"breakpointConfig"
],
"examples": [
{
"workspaceFolder": "/abs/path/project",
"configurationName": "Run test.js",
"mode": "singleShot",
"breakpointConfig": {
"breakpoints": [
{
"path": "src/server.ts",
"code": "console.log('listening')",
"variable": "PORT",
"onHit": "captureAndStopDebugging",
"logMessage": "port={PORT}"
}
],
"breakpointTrigger": {
"type": "httpRequest",
"url": "http://localhost:%PORT%/swagger"
}
},
"serverReady": {
"pattern": "listening on .*:(\\d+)"
}
},
{
"workspaceFolder": "/abs/path/project",
"mode": "inspect",
"breakpointConfig": {
"breakpoints": [
{
"path": "src/index.ts",
"code": "console.log('hello')",
"variable": "*",
"onHit": "break"
}
],
"breakpointTrigger": {
"type": "shellCommand",
"shellCommand": "echo serverReady breakpointTrigger executed"
}
},
"serverReady": {
"pattern": "ready"
}
}
]
}
},
{
"name": "resumeDebugSession",
"displayName": "Resume Debug Session",
"toolReferenceName": "resumeDebugSession",
"canBeReferencedInPrompt": true,
"userDescription": "Resume a paused debug session optionally adding new breakpoints. Breakpoints use the same contract as startDebugSessionWithBreakpoints (path + code snippet + onHit).",
"modelDescription": "Resume execution of the specified debug session. Optionally wait for next stop and set/clear breakpoints before continuing. Each new breakpoint specifies path + code snippet and optional condition/hitCount/logMessage; onHit supports break, captureAndContinue, captureAndStopDebugging.",
"inputSchema": {
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"description": "ID of the debug session to resume."
},
"waitForStop": {
"type": "boolean",
"description": "If true, wait until the debugger stops again before returning."
},
"breakpointConfig": {
"type": "object",
"properties": {
"breakpoints": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"path": {
"type": "string"
},
"code": {
"type": "string",
"description": "Exact code snippet (substring) to break on. The tool will search the file and set breakpoints on every matching line."
},
"variable": {
"type": "string",
"description": "Required variable name to focus in output (case-sensitive). Use '*' to opt into capture-all (auto-capture up to captureMaxVariables)."
},
"onHit": {
"type": "string",
"enum": [
"break",
"captureAndContinue",
"captureAndStopDebugging"
],
"description": "Breakpoint onHit behavior. Default break."
},
"condition": {
"type": "string",
"description": "Optional conditional expression (e.g., 'x > 5')."
},
"hitCount": {
"type": "integer",
"description": "Exact numeric hit count (pause on that occurrence)."
},
"logMessage": {
"type": "string",
"description": "Optional log message with {var} interpolation. Returned as capturedLogMessages if action=capture."
}
},
"required": [
"path",
"code",
"variable"
]
}
}
},
"required": [
"breakpoints"
]
}
},
"required": [
"sessionId"
]
}
},
{
"name": "triggerBreakpoint",
"displayName": "Trigger Breakpoint",
"toolReferenceName": "triggerBreakpoint",
"canBeReferencedInPrompt": true,
"userDescription": "Trigger an external action (httpRequest/shellCommand/vscodeCommand) against a debug session, optionally starting one, optionally adding breakpoints first, then wait for the next stop.",
"modelDescription": "Trigger a breakpoint by firing an external action (HTTP request, shell command, or VS Code command) and wait for the next debugger stop. Use this when a user asks to: start debugging, wait until the app is ready, then trigger a request (e.g., GET /api/foo) that should hit a breakpoint and capture variables. If sessionId is omitted, the tool can start or select a session using workspaceFolder/configurationName. Prefer breakpointConfig.breakpointTrigger.type=httpRequest for reliability (fire-and-forget) when the debuggee might pause on breakpoints.",
"inputSchema": {
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"description": "Optional debug session id (UUID). If omitted, provide workspaceFolder to allow the tool to start/select a session."
},
"workspaceFolder": {
"type": "string",
"description": "Absolute path of an OPEN workspace folder (required when sessionId is omitted)."
},
"configurationName": {
"type": "string",
"description": "Name of launch configuration to start when sessionId is omitted. If omitted uses copilot-debugger.defaultLaunchConfiguration or auto-selects sole configuration if exactly one exists."
},
"watcherTaskLabel": {
"type": "string",
"description": "Optional task label to auto-start before launching the debugger when sessionId is omitted (intended for watcher tasks like 'dotnet watch run')."
},
"existingSessionBehavior": {
"type": "string",
"enum": [
"useExisting",
"stopExisting",
"ignoreAndCreateNew"
],
"description": "Optional per-call override for how to behave when debug sessions already exist. If omitted, uses copilot-debugger.existingSessionBehavior."
},
"serverReadyTrigger": {
"type": "object",
"description": "Optional serverReady trigger used only when sessionId is omitted. The tool uses breakpointConfig.breakpointTrigger as the serverReady breakpointTrigger (start + wait for ready + trigger + stop at breakpointConfig.breakpoints).",
"properties": {
"path": {
"type": "string",
"description": "Optional file path for a readiness breakpoint trigger (use with code)."
},
"code": {
"type": "string",
"description": "Optional code snippet (substring) used to locate a 1-based line for readiness breakpoint trigger (use with path)."
},
"pattern": {
"type": "string",
"description": "Optional regex pattern to detect readiness in debug output/terminal."
}
}
},
"startupBreakpointConfig": {
"type": "object",
"description": "Optional readiness gate used only when sessionId is omitted. If provided, the tool starts a session and waits until one of these breakpoints is hit before firing the trigger action.",
"properties": {
"breakpoints": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "File path relative to workspace or absolute."
},
"code": {
"type": "string",
"description": "Exact code snippet (substring) to break on. The tool will search the file and set breakpoints on every matching line."
},
"variable": {
"type": "string",
"description": "Required variable name to focus in output (case-sensitive). Use '*' to opt into capture-all (auto-capture up to captureMaxVariables)."
},
"onHit": {
"type": "string",
"enum": [
"break",
"captureAndContinue",
"captureAndStopDebugging"
]
}
},
"required": [
"path",
"code",
"variable"
]
}
}
},
"required": [
"breakpoints"
]
},
"timeoutSeconds": {
"type": "number",
"description": "Timeout in seconds to wait for the next stop after triggering (default 30)."
},
"mode": {
"type": "string",
"enum": [
"singleShot",
"inspect"
],
"description": "Tool mode. singleShot (default): terminate the session before returning. inspect: allow returning while paused for iterative inspection/resume workflows."
},
"breakpointConfig": {
"type": "object",
"properties": {
"breakpoints": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"description": "File path relative to session workspace folder or absolute."
},
"code": {
"type": "string",
"description": "Exact code snippet (substring) to break on. The tool will search the file and set breakpoints on every matching line."
},
"variable": {
"type": "string",
"description": "Required variable name to focus in output (case-sensitive). Use '*' to opt into capture-all (auto-capture up to captureMaxVariables)."
},
"onHit": {
"type": "string",
"enum": [
"break",
"captureAndContinue",
"captureAndStopDebugging"
]
},
"condition": {
"type": "string"
},
"hitCount": {
"type": "integer"
},
"logMessage": {
"type": "string"
}
},
"required": [
"path",
"code",
"variable"
]
}
},
"breakpointTrigger": {
"type": "object",
"description": "Trigger action to execute after resuming. Prefer the discriminator form with 'type'. httpRequest is fire-and-forget to avoid deadlocks when the handler hits a breakpoint.",
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"const": "httpRequest"
},
"url": {
"type": "string"
},
"method": {
"type": "string"
},
"headers": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"body": {
"type": "string"
}
},
"required": [
"type",
"url"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "shellCommand"
},
"shellCommand": {
"type": "string"
}
},
"required": [
"type",
"shellCommand"
]
},
{
"type": "object",
"properties": {
"type": {
"const": "vscodeCommand"
},
"command": {
"type": "string"
},
"args": {
"type": "array",
"description": "Optional VS Code command arguments.",
"items": {
"type": "string"
}
}
},
"required": [
"type",
"command"
]
}
]
}
},
"required": [
"breakpointTrigger"
]
}
},
"required": [
"breakpointConfig"
],
"anyOf": [
{
"required": [
"sessionId"
]
},
{
"required": [
"workspaceFolder"
]
}
]
}
},
{
"name": "listDebugSessions",
"displayName": "List Debug Sessions",
"toolReferenceName": "listDebugSessions",
"canBeReferencedInPrompt": true,
"userDescription": "List active debug sessions and their stop-compatible ids.",
"modelDescription": "List all active debug sessions. The returned 'id' values are guaranteed to be valid inputs to stopDebugSession(sessionId).",
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "getVariables",
"displayName": "Get Variables",
"toolReferenceName": "getVariables",
"canBeReferencedInPrompt": true,
"userDescription": "Get all variables from the current debug session",
"modelDescription": "Retrieve a list of all variables and their values from the current debug session when stopped at a breakpoint",
"inputSchema": {
"type": "object",
"properties": {}
}
},
{
"name": "expandVariable",
"displayName": "Expand Variable",
"toolReferenceName": "expandVariable",
"canBeReferencedInPrompt": true,
"userDescription": "Show detailed contents and immediate children of a specific variable",
"modelDescription": "Expand a specific variable to show its detailed contents and immediate child properties/elements when stopped at a breakpoint",
"inputSchema": {
"type": "object",
"properties": {
"variableName": {
"type": "string",
"description": "Name of the variable to expand"
}
},
"required": [
"variableName"
]
}
},
{
"name": "evaluateExpression",
"displayName": "Evaluate Expression",
"toolReferenceName": "evaluateExpression",
"canBeReferencedInPrompt": true,
"userDescription": "Evaluate an arbitrary expression (like in Debug Console) in the current paused debug context.",
"modelDescription": "Use the DAP 'evaluate' request to evaluate code in the paused stack frame. Provide frameId implicitly using top frame.",
"inputSchema": {
"type": "object",
"properties": {
"expression": {
"type": "string",
"description": "Expression to evaluate (e.g., variable name or small snippet)."
},
"sessionId": {
"type": "string",
"description": "Optional debug session id; defaults to active session."
}
},
"required": [
"expression"
]
}
},
{
"name": "stopDebugSession",
"displayName": "Stop Debug Session",
"toolReferenceName": "stopDebugSession",
"canBeReferencedInPrompt": true,
"userDescription": "Terminate one or more debug sessions by id (aligns with resumeDebugSession).",
"modelDescription": "Stop (terminate) debug sessions identified by sessionId. sessionId may be the VS Code debug session UUID (recommended) or the numeric toolId shown by listDebugSessions.",
"inputSchema": {
"type": "object",
"properties": {
"sessionId": {
"type": "string",
"description": "Identifier of the debug session to stop. Accepts the VS Code session UUID or the numeric toolId from listDebugSessions."
}
},
"required": [
"sessionId"
]
}
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "tsc -p ./",
"update": "vscode-ext-gen",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "cross-env NODE_OPTIONS= node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch -p ./",
"build:dist": "cross-env NODE_OPTIONS= node esbuild.js --production",
"package": "npm run build:dist",
"vsix:local": "npm run vscode:prepublish && npx --yes @vscode/vsce package --no-dependencies --out copilot-breakpoint-debugger-local.vsix && code --install-extension copilot-breakpoint-debugger-local.vsix --force",
"demo:pw:prep": "npx tsc -p external/vscode-test-playwright/tsconfig.json",
"demo:pw": "npm run demo:pw:prep && cross-env PW_VSCODE_TEST_WS_CONNECT_TIMEOUT_MS=120000 PW_VSCODE_FIRST_WINDOW_TIMEOUT_MS=120000 NODE_OPTIONS= node scripts/playwright-cli-from-vscode-test-playwright.cjs test --config playwright.config.ts playwright/demo.spec.ts",
"test:pw": "npm run demo:pw:prep && cross-env PW_VSCODE_TEST_WS_CONNECT_TIMEOUT_MS=120000 PW_VSCODE_FIRST_WINDOW_TIMEOUT_MS=120000 NODE_OPTIONS= node scripts/playwright-cli-from-vscode-test-playwright.cjs test --config playwright.config.ts",
"demo:pw:videos": "npm run demo:pw && npm --prefix external/playwright-test-videos ci && npm --prefix external/playwright-test-videos run build && cross-env NODE_OPTIONS= node external/playwright-test-videos/dist/cli.js --from test-results --to docs/pw-videos --readme README.md --max 1 --name demo.mp4 --dedupe",
"demo:pw:video:preview": "npm run demo:pw:videos && pwsh -NoProfile -File scripts/preview-demo-video.ps1",
"demo:pw:update-readme": "npm run demo:pw:videos",
"typecheck:playwright": "npm run demo:pw:prep && tsc --noEmit -p playwright/tsconfig.json",
"compile-tests": "tsc -p ./",
"pretest": "npm run build:dist && npm run lint && npm run compile-tests && npm run typecheck:playwright",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"test": "cross-env NODE_OPTIONS= node scripts/clean-vscode-test-user-data.cjs && cross-env NODE_OPTIONS= npx vscode-test --config .vscode-test.mjs",
"test:coverage": "npm run compile-tests && npx vscode-test --coverage",
"release:notes": "cross-env NODE_OPTIONS= tsx .github/scripts/generate-release-notes.ts",
"deps": "taze"
},
"dependencies": {
"@actions/core": "^2.0.2",
"@actions/github": "^8.0.1",
"@anthropic-ai/sdk": "^0.71.2",
"@reactive-vscode/reactivity": "^0.4.1",
"@vscode/prompt-tsx": "^0.4.0-alpha.6",
"markdown-table": "^3.0.4",
"mocha": "^10.7.3",
"reactive-vscode": "^0.4.1",
"strip-ansi": "^7.1.2"
},
"optionalDependencies": {
"@anthropic-ai/claude-agent-sdk": "^0.1.77"
},
"devDependencies": {
"@antfu/eslint-config": "^7.1.0",
"@esbuild-plugins/node-modules-polyfill": "^0.2.2",
"@playwright/test": "^1.57.0",
"@types/mocha": "^10.0.10",
"@types/node": "20.x",
"@types/vscode": "^1.108.1",
"@typescript-eslint/eslint-plugin": "^8.53.1",
"@typescript-eslint/parser": "^8.53.1",
"@vscode/debugprotocol": "^1.68.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"baseline-browser-mapping": "^2.9.15",
"cross-env": "^10.1.0",
"esbuild": "^0.27.2",
"esbuild-register": "^3.6.0",
"eslint": "^9.39.2",
"glob": "10.5.0",
"npm-run-all": "^4.1.5",
"taze": "^19.9.2",
"tsx": "^4.21.0",
"typescript": "^5.9.3",
"vscode-ext-gen": "^1.5.1",
"vscode-test-playwright": "file:external/vscode-test-playwright"
},
"overrides": {
"glob": "10.5.0",
"mocha@11.7.5": {
"diff": "8.0.3"
}
}
}