Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
971 lines (971 loc) · 45.1 KB
/
Copy pathpackage.json
File metadata and controls
971 lines (971 loc) · 45.1 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
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
{
"name": "simics-target-debug",
"displayName": "Simics Target Debug",
"description": "Debug targets through a Target Communication Framework (TCF) agent, such as the Simics TCF agent.",
"version": "0.5.0",
"publisher": "intel-simics",
"private": true,
"license": "MIT",
"repository": {
"url": "https://github.com/intel/simics-vs-code-tcf-debug"
},
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Debuggers"
],
"main": "./out/extension.js",
"activationEvents": [
"onDebugResolve:simics-target-debug"
],
"contributes": {
"commands": [
{
"command": "simics-target-debug.addSymbolFileBreakpoint",
"title": "Add Function Breakpoint...",
"category": "Simics Target Debug",
"icon": "$(debug-breakpoint-function)"
},
{
"command": "simics-target-debug.addFunctionBreakpointInContext",
"title": "Add Function Breakpoint in Context...",
"category": "Simics Target Debug",
"icon": "$(debug-breakpoint-function)"
},
{
"command": "simics-target-debug.addPathMapRule",
"title": "Add Path Map Rule...",
"category": "Simics Target Debug",
"icon": "$(add)"
},
{
"command": "simics-target-debug.editPathMapRule",
"title": "Edit Path Map Rule...",
"category": "Simics Target Debug",
"icon": "$(edit)"
},
{
"command": "simics-target-debug.removePathMapRule",
"title": "Remove Path Map Rule",
"category": "Simics Target Debug",
"icon": "$(trash)"
},
{
"command": "simics-target-debug.movePathMapRuleUp",
"title": "Move Rule Up",
"category": "Simics Target Debug",
"icon": "$(arrow-up)"
},
{
"command": "simics-target-debug.movePathMapRuleDown",
"title": "Move Rule Down",
"category": "Simics Target Debug",
"icon": "$(arrow-down)"
},
{
"command": "simics-target-debug.savePathMap",
"title": "Save Path Map to Debug Configuration",
"category": "Simics Target Debug",
"icon": "$(save)"
},
{
"command": "simics-target-debug.refreshPathMap",
"title": "Refresh Path Map",
"category": "Simics Target Debug",
"icon": "$(refresh)"
},
{
"command": "simics-target-debug.openLaunchSettings",
"title": "Edit Launch Configurations",
"category": "Simics Target Debug",
"icon": "$(settings-gear)"
},
{
"command": "simics-target-debug.openLaunchJson",
"title": "Open launch.json as Text",
"category": "Simics Target Debug",
"icon": "$(json)"
},
{
"command": "simics-target-debug.locateSourceFile",
"title": "Locate Source File...",
"category": "Simics Target Debug",
"icon": "$(search)"
},
{
"command": "simics-target-debug.addSymbolFile",
"title": "Add Symbol File...",
"category": "Simics Target Debug",
"icon": "$(add)"
},
{
"command": "simics-target-debug.editSymbolFile",
"title": "Edit Symbol Mapping...",
"category": "Simics Target Debug",
"icon": "$(edit)"
},
{
"command": "simics-target-debug.removeSymbolFile",
"title": "Remove Symbol File",
"category": "Simics Target Debug",
"icon": "$(trash)"
},
{
"command": "simics-target-debug.reloadSymbolFile",
"title": "Reload Symbol File",
"category": "Simics Target Debug",
"icon": "$(refresh)"
},
{
"command": "simics-target-debug.saveSymbolFiles",
"title": "Save Symbol Files to Debug Configuration",
"category": "Simics Target Debug",
"icon": "$(save)"
},
{
"command": "simics-target-debug.reloadSymbolFiles",
"title": "Reload All Symbol Files",
"category": "Simics Target Debug",
"icon": "$(refresh)"
},
{
"command": "simics-target-debug.copyFrameAddress",
"title": "Copy Address",
"category": "Simics Target Debug"
},
{
"command": "simics-target-debug.openTargetMemory",
"title": "Open Target Memory",
"category": "Simics Target Debug",
"icon": "$(circuit-board)"
},
{
"command": "simics-target-debug.newTargetMemory",
"title": "New Target Memory View",
"category": "Simics Target Debug",
"icon": "$(add)"
},
{
"command": "simics-target-debug.openVariableInTargetMemory",
"title": "Open in Target Memory",
"category": "Simics Target Debug"
},
{
"command": "simics-target-debug.targetMemory.copy",
"title": "Copy"
},
{
"command": "simics-target-debug.targetMemory.copyText",
"title": "Copy as Text"
},
{
"command": "simics-target-debug.targetMemory.copyAddress",
"title": "Copy Address"
},
{
"command": "simics-target-debug.targetMemory.goto",
"title": "Go to Address..."
},
{
"command": "simics-target-debug.targetMemory.find",
"title": "Find..."
},
{
"command": "simics-target-debug.targetMemory.refresh",
"title": "Read Memory Again"
},
{
"command": "simics-target-debug.openConsole",
"title": "Open Simics Console",
"category": "Simics Target Debug",
"icon": "$(terminal)"
},
{
"command": "simics-target-debug.showConsole",
"title": "Show Console",
"category": "Simics Target Debug"
},
{
"command": "simics-target-debug.connectConsole",
"title": "Connect",
"category": "Simics Target Debug",
"icon": "$(plug)"
},
{
"command": "simics-target-debug.reconnectConsole",
"title": "Reconnect",
"category": "Simics Target Debug",
"icon": "$(debug-restart)"
},
{
"command": "simics-target-debug.clearConsoleHistory",
"title": "Clear History",
"category": "Simics Target Debug",
"icon": "$(clear-all)",
"enablement": "viewItem =~ /\\bhistory\\b/"
},
{
"command": "simics-target-debug.consoleKeysToVsCode",
"title": "Editing keys such as Ctrl+P go to Simics. Click to leave them to VS Code (editingKeys in launch.json)",
"category": "Simics Target Debug",
"icon": "$(lock)"
},
{
"command": "simics-target-debug.consoleKeysToSimics",
"title": "Editing keys such as Ctrl+P go to VS Code. Click to send them to Simics (editingKeys in launch.json)",
"category": "Simics Target Debug",
"icon": "$(unlock)"
}
],
"views": {
"debug": [
{
"id": "simics-target-debug.pathMap",
"name": "Path Maps",
"icon": "$(replace-all)",
"when": "debugType == 'simics-target-debug'"
},
{
"id": "simics-target-debug.symbolFiles",
"name": "Symbol Files",
"icon": "$(file-code)",
"when": "debugType == 'simics-target-debug'"
},
{
"id": "simics-target-debug.consoles",
"name": "Consoles",
"icon": "$(terminal)",
"when": "debugType == 'simics-target-debug' || simics-target-debug.hasConsoles"
}
]
},
"viewsWelcome": [
{
"view": "simics-target-debug.consoles",
"contents": "No console. The Simics CLI is listed here when the agent has the Simics CommandLine service."
}
],
"menus": {
"commandPalette": [
{
"command": "simics-target-debug.addSymbolFileBreakpoint",
"when": "false"
},
{
"command": "simics-target-debug.addFunctionBreakpointInContext",
"when": "debugType == 'simics-target-debug'"
},
{
"command": "simics-target-debug.saveSymbolFiles",
"when": "debugType == 'simics-target-debug'"
},
{
"command": "simics-target-debug.addPathMapRule",
"when": "debugType == 'simics-target-debug'"
},
{
"command": "simics-target-debug.savePathMap",
"when": "debugType == 'simics-target-debug'"
},
{
"command": "simics-target-debug.refreshPathMap",
"when": "debugType == 'simics-target-debug'"
},
{
"command": "simics-target-debug.editPathMapRule",
"when": "false"
},
{
"command": "simics-target-debug.removePathMapRule",
"when": "false"
},
{
"command": "simics-target-debug.movePathMapRuleUp",
"when": "false"
},
{
"command": "simics-target-debug.movePathMapRuleDown",
"when": "false"
},
{
"command": "simics-target-debug.locateSourceFile",
"when": "debugType == 'simics-target-debug'"
},
{
"command": "simics-target-debug.openLaunchJson",
"when": "activeCustomEditorId == 'simics-target-debug.launchSettings'"
},
{
"command": "simics-target-debug.copyFrameAddress",
"when": "false"
},
{
"command": "simics-target-debug.openVariableInTargetMemory",
"when": "false"
},
{
"command": "simics-target-debug.targetMemory.copy",
"when": "false"
},
{
"command": "simics-target-debug.targetMemory.copyText",
"when": "false"
},
{
"command": "simics-target-debug.targetMemory.copyAddress",
"when": "false"
},
{
"command": "simics-target-debug.targetMemory.goto",
"when": "false"
},
{
"command": "simics-target-debug.targetMemory.find",
"when": "false"
},
{
"command": "simics-target-debug.targetMemory.refresh",
"when": "false"
},
{
"command": "simics-target-debug.showConsole",
"when": "false"
},
{
"command": "simics-target-debug.connectConsole",
"when": "false"
},
{
"command": "simics-target-debug.reconnectConsole",
"when": "false"
},
{
"command": "simics-target-debug.clearConsoleHistory",
"when": "false"
},
{
"command": "simics-target-debug.consoleKeysToVsCode",
"when": "false"
},
{
"command": "simics-target-debug.consoleKeysToSimics",
"when": "false"
}
],
"editor/title": [
{
"command": "simics-target-debug.openLaunchSettings",
"when": "resourcePath =~ /[\\\\/]\\.vscode[\\\\/]launch\\.json$/ && activeCustomEditorId != 'simics-target-debug.launchSettings'",
"group": "navigation"
},
{
"command": "simics-target-debug.openLaunchJson",
"when": "activeCustomEditorId == 'simics-target-debug.launchSettings'",
"group": "navigation"
},
{
"command": "simics-target-debug.newTargetMemory",
"when": "activeWebviewPanelId == 'simics-target-debug.targetMemory'",
"group": "navigation"
}
],
"webview/context": [
{
"command": "simics-target-debug.targetMemory.copy",
"when": "webviewId == 'simics-target-debug.targetMemory' && webviewSection == 'grid'",
"group": "1_copy@1"
},
{
"command": "simics-target-debug.targetMemory.copyText",
"when": "webviewId == 'simics-target-debug.targetMemory' && webviewSection == 'grid'",
"group": "1_copy@2"
},
{
"command": "simics-target-debug.targetMemory.copyAddress",
"when": "webviewId == 'simics-target-debug.targetMemory' && webviewSection == 'grid'",
"group": "1_copy@3"
},
{
"command": "simics-target-debug.targetMemory.goto",
"when": "webviewId == 'simics-target-debug.targetMemory' && webviewSection == 'grid'",
"group": "2_navigate@1"
},
{
"command": "simics-target-debug.targetMemory.find",
"when": "webviewId == 'simics-target-debug.targetMemory' && webviewSection == 'grid'",
"group": "2_navigate@2"
},
{
"command": "simics-target-debug.targetMemory.refresh",
"when": "webviewId == 'simics-target-debug.targetMemory' && webviewSection == 'grid'",
"group": "3_refresh@1"
}
],
"view/title": [
{
"command": "simics-target-debug.addFunctionBreakpointInContext",
"when": "view == 'workbench.debug.viewlet.state' && debugType == 'simics-target-debug'",
"group": "navigation@1"
},
{
"command": "simics-target-debug.openConsole",
"when": "view == 'simics-target-debug.consoles' && debugType == 'simics-target-debug' && !simics-target-debug.hasConsoles",
"group": "navigation@1"
},
{
"command": "simics-target-debug.saveSymbolFiles",
"when": "view == 'simics-target-debug.symbolFiles'",
"group": "navigation@2"
},
{
"command": "simics-target-debug.addPathMapRule",
"when": "view == 'simics-target-debug.pathMap'",
"group": "navigation@1"
},
{
"command": "simics-target-debug.savePathMap",
"when": "view == 'simics-target-debug.pathMap'",
"group": "navigation@2"
},
{
"command": "simics-target-debug.refreshPathMap",
"when": "view == 'simics-target-debug.pathMap'",
"group": "navigation@3"
},
{
"command": "simics-target-debug.addSymbolFile",
"when": "view == 'simics-target-debug.symbolFiles'",
"group": "navigation@1"
},
{
"command": "simics-target-debug.reloadSymbolFiles",
"when": "view == 'simics-target-debug.symbolFiles'",
"group": "navigation@3"
}
],
"view/item/context": [
{
"command": "simics-target-debug.addSymbolFileBreakpoint",
"when": "view == 'simics-target-debug.symbolFiles' && viewItem =~ /\\bsymbolFile\\b/ && viewItem =~ /\\bscoped\\b/",
"group": "breakpoints@1"
},
{
"command": "simics-target-debug.connectConsole",
"when": "view == 'simics-target-debug.consoles' && viewItem =~ /\\bconnect\\b/",
"group": "inline@0"
},
{
"command": "simics-target-debug.reconnectConsole",
"when": "view == 'simics-target-debug.consoles' && viewItem =~ /\\breconnect\\b/",
"group": "inline@0"
},
{
"command": "simics-target-debug.consoleKeysToVsCode",
"when": "view == 'simics-target-debug.consoles' && viewItem =~ /\\bkeysToSimics\\b/",
"group": "inline@0"
},
{
"command": "simics-target-debug.consoleKeysToSimics",
"when": "view == 'simics-target-debug.consoles' && viewItem =~ /\\bkeysToVsCode\\b/",
"group": "inline@0"
},
{
"command": "simics-target-debug.clearConsoleHistory",
"when": "view == 'simics-target-debug.consoles' && viewItem =~ /^simicsCli/",
"group": "inline@1"
},
{
"command": "simics-target-debug.editPathMapRule",
"when": "view == 'simics-target-debug.pathMap' && viewItem == 'pathMapRule'",
"group": "inline@1"
},
{
"command": "simics-target-debug.removePathMapRule",
"when": "view == 'simics-target-debug.pathMap' && viewItem == 'pathMapRule'",
"group": "inline@2"
},
{
"command": "simics-target-debug.movePathMapRuleUp",
"when": "view == 'simics-target-debug.pathMap' && viewItem == 'pathMapRule'",
"group": "order@1"
},
{
"command": "simics-target-debug.movePathMapRuleDown",
"when": "view == 'simics-target-debug.pathMap' && viewItem == 'pathMapRule'",
"group": "order@2"
},
{
"command": "simics-target-debug.editSymbolFile",
"when": "view == 'simics-target-debug.symbolFiles' && viewItem =~ /\\bsymbolFile\\b/",
"group": "inline@1"
},
{
"command": "simics-target-debug.reloadSymbolFile",
"when": "view == 'simics-target-debug.symbolFiles' && viewItem =~ /\\bsymbolFile\\b/",
"group": "inline@2"
},
{
"command": "simics-target-debug.removeSymbolFile",
"when": "view == 'simics-target-debug.symbolFiles' && viewItem =~ /\\bsymbolFile\\b/",
"group": "inline@3"
}
],
"debug/toolBar": [
{
"command": "simics-target-debug.openTargetMemory",
"when": "debugType == 'simics-target-debug'"
}
],
"debug/callstack/context": [
{
"command": "simics-target-debug.addFunctionBreakpointInContext",
"when": "debugType == 'simics-target-debug' && callStackItemType == 'stackFrame'",
"group": "3_modification"
},
{
"command": "simics-target-debug.copyFrameAddress",
"when": "debugType == 'simics-target-debug' && callStackItemType == 'stackFrame'",
"group": "3_modification"
}
],
"debug/variables/context": [
{
"command": "simics-target-debug.openVariableInTargetMemory",
"when": "debugType == 'simics-target-debug'"
}
]
},
"keybindings": [
{
"command": "simics-target-debug.targetMemory.goto",
"key": "ctrl+g",
"when": "activeWebviewPanelId == 'simics-target-debug.targetMemory'"
},
{
"command": "simics-target-debug.targetMemory.find",
"key": "ctrl+f",
"mac": "cmd+f",
"when": "activeWebviewPanelId == 'simics-target-debug.targetMemory'"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+e",
"args": {
"text": "\u0005"
},
"when": "terminalFocus && simics-target-debug.editingKeys"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+f",
"args": {
"text": "\u0006"
},
"when": "terminalFocus && simics-target-debug.editingKeys"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+g",
"args": {
"text": "\u0007"
},
"when": "terminalFocus && simics-target-debug.editingKeys"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+k",
"args": {
"text": "\u000b"
},
"when": "terminalFocus && simics-target-debug.editingKeys"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+p",
"args": {
"text": "\u0010"
},
"when": "terminalFocus && simics-target-debug.editingKeys"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+r",
"args": {
"text": "\u0012"
},
"when": "terminalFocus && simics-target-debug.editingKeys"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+w",
"args": {
"text": "\u0017"
},
"when": "terminalFocus && simics-target-debug.editingKeys"
},
{
"command": "workbench.action.terminal.sendSequence",
"key": "ctrl+shift+-",
"args": {
"text": "\u001f"
},
"when": "terminalFocus && simics-target-debug.editingKeys && isWindows"
}
],
"customEditors": [
{
"viewType": "simics-target-debug.launchSettings",
"displayName": "TCF Launch Configurations",
"selector": [
{
"filenamePattern": "**/.vscode/launch.json"
}
],
"priority": "option"
}
],
"debuggers": [
{
"type": "simics-target-debug",
"label": "Simics Target Debug",
"configurationAttributes": {
"attach": {
"properties": {
"host": {
"type": "string",
"description": "Host name or IP address of the TCF agent.",
"default": "localhost"
},
"port": {
"type": "number",
"description": "TCP port of the TCF agent.",
"default": 1534
},
"connectTimeout": {
"type": "number",
"description": "Timeout in milliseconds for connecting and receiving the agent's Locator.Hello.",
"default": 10000
},
"symbolFiles": {
"type": "array",
"description": "Symbol files (ELF with debug information) to add to the agent's memory map (MemoryMap service) when attaching. They are removed when the debug session ends.",
"items": {
"type": "object",
"required": [
"path"
],
"additionalProperties": false,
"properties": {
"path": {
"type": "string",
"minLength": 1,
"format": "file-path",
"description": "Path of the symbol file, as seen by the agent. Relative paths are relative to the workspace folder."
},
"context": {
"type": "string",
"description": "ID or name of the context the symbols apply to. If neither context nor contextQuery is set, the symbols apply to all contexts."
},
"contextQuery": {
"type": "string",
"description": "TCF context query selecting the contexts the symbols apply to, for example \"**/HasState=true\"."
},
"address": {
"type": [
"string",
"integer"
],
"description": "Relocation offset added to all addresses in the file, like the Simics command add-symbol-file -relative, for example \"0x1000\" or \"-0x1000\". With \"absolute\", the load address of the file's loadable segment with the lowest file offset (normally the first one) instead. If not set, the addresses in the file are used."
},
"absolute": {
"type": "boolean",
"description": "Treat \"address\" as an absolute load address: the symbols are relocated so that the file's loadable segment with the lowest file offset (normally the first one) is at this address.",
"default": false
}
}
},
"default": [
{
"path": "${workspaceFolder}/build/firmware.elf"
}
]
},
"pathMap": {
"type": "array",
"description": "Maps source paths in the debug information to paths on this host. Matching rules are tried in order, the first mapped file that exists is used. Rules apply to all contexts unless context or contextQuery selects a subset. The rules are also sent to the agent (PathMap service), so breakpoints can be set on host paths.",
"items": {
"type": "object",
"required": [
"source",
"destination"
],
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"minLength": 1,
"description": "Path prefix as compiled into the debug information, for example the build directory."
},
"destination": {
"type": "string",
"minLength": 1,
"format": "file-or-folder-path",
"description": "Corresponding path prefix on this host, for example ${workspaceFolder}."
},
"context": {
"type": "string",
"minLength": 1,
"description": "Exact context ID. Sent to PathMap.set as ContextQuery=\"ID=<id>\". Use either context or contextQuery, not both. Omit both to apply to all contexts."
},
"contextQuery": {
"type": "string",
"minLength": 1,
"description": "TCF context query selecting a group of contexts, for example \"**/HasState=true\" or \"ID=cpu0\". Sent as the ContextQuery property of PathMap.set. Use either context or contextQuery, not both."
}
}
},
"default": [
{
"source": "/build/src",
"destination": "${workspaceFolder}"
}
]
},
"consoles": {
"type": "object",
"description": "Consoles opened with the debug session.",
"additionalProperties": false,
"properties": {
"simicsCli": {
"type": "object",
"description": "The Simics command line (Simics CLI), if the agent has the CommandLine service.",
"additionalProperties": false,
"properties": {
"open": {
"type": "boolean",
"description": "Open the Simics CLI after attaching. When off, open it from the Consoles view.",
"default": true
},
"historySessions": {
"type": "integer",
"minimum": 0,
"description": "How many earlier sessions with the same agent to show above the command line. 0 turns it off.",
"default": 3
},
"editingKeys": {
"type": "boolean",
"description": "Send keys such as Ctrl+P and Ctrl+R to Simics instead of VS Code while the Simics CLI has focus.",
"default": true
}
}
}
}
},
"traceTcf": {
"type": "boolean",
"description": "Log TCF traffic to the Output view, in the \"Simics Target Debug\" log. traceTcfSilence selects messages to leave out.",
"default": false
},
"traceTcfSilence": {
"type": "array",
"description": "TCF messages left out of the traceTcf log. Each item silences the messages of a service with one of the given types and a name. \"*\" matches anything. A command's results (R, P and N) count as the command. Flow control messages have no service or name, so only items with \"*\" for both match them. If not set, Locator peer events (such as the heartbeat) and the Simics CLI (CommandLine) are silenced. An empty list logs everything.",
"items": {
"type": "object",
"required": [
"service"
],
"additionalProperties": false,
"properties": {
"service": {
"type": "string",
"minLength": 1,
"description": "TCF service, for example CommandLine, Locator, RunControl or Breakpoints, or \"*\" for all.",
"examples": [
"*",
"Breakpoints",
"CommandLine",
"ContextQuery",
"ContextReset",
"Disassembly",
"DPrintf",
"Expressions",
"ITP",
"LineNumbers",
"Locator",
"Memory",
"MemoryDevices",
"MemoryMap",
"PathMap",
"Registers",
"RegistersExt",
"RunControl",
"Simics",
"SimicsExecTraces",
"SimicsLogs",
"Simulation",
"SimUtils",
"StackTrace",
"Streams",
"Symbols",
"SymbolsProxyV1",
"SymbolsProxyV2",
"TargetIdentification",
"Trace",
"ZeroCopy"
]
},
"type": {
"type": "array",
"description": "Message types to silence. \"*\" means all types.",
"minItems": 1,
"uniqueItems": true,
"items": {
"type": "string",
"enum": [
"*",
"command",
"event",
"flowControl"
],
"enumItemLabels": [
"*",
"Command",
"Event",
"Flow Control"
],
"enumDescriptions": [
"All message types.",
"Commands sent to the agent (C) and their results (R, P and N).",
"Events from the agent (E).",
"Flow control messages (F). They have no service or name."
]
},
"default": [
"*"
]
},
"name": {
"type": "string",
"minLength": 1,
"description": "Command or event name, or \"*\" for all. A command's results have its name.",
"default": "*"
}
},
"default": {
"service": "",
"type": [
"*"
],
"name": "*"
}
},
"default": [
{
"service": "Locator",
"type": [
"event"
],
"name": "peerHeartBeat"
},
{
"service": "Locator",
"type": [
"event"
],
"name": "peerAdded"
},
{
"service": "Locator",
"type": [
"event"
],
"name": "peerRemoved"
},
{
"service": "Locator",
"type": [
"event"
],
"name": "peerChanged"
},
{
"service": "CommandLine",
"type": [
"*"
],
"name": "*"
}
]
},
"disassemblyFunctionHeaders": {
"type": "boolean",
"description": "Show a header row with source file, line and name above the first instruction of each function in the Disassembly view. Needs the agent's Symbols service and the setting debug.disassemblyView.showSourceCode. Turn off to save the symbol lookups.",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "simics-target-debug",
"request": "attach",
"name": "Attach to TCF agent",
"host": "localhost",
"port": 1534
}
],
"configurationSnippets": [
{
"label": "Simics Target Debug: Attach to agent",
"description": "Attach to a running TCF agent (for example Simics 'new-tcf-agent').",
"body": {
"type": "simics-target-debug",
"request": "attach",
"name": "Attach to TCF agent",
"host": "localhost",
"port": 1534
}
}
]
}
]
},
"scripts": {
"build": "npm run typecheck && npm run compile",
"check": "npm run typecheck && npm test",
"compile": "node esbuild.mjs",
"compile:production": "node esbuild.mjs --production",
"watch": "node esbuild.mjs --watch",
"typecheck": "tsc --noEmit -p . && tsc --noEmit -p tsconfig.webview.json && tsc --noEmit -p src/launchSettings/webview",
"format": "prettier --write .",
"test": "node esbuild.mjs --tests && node --enable-source-maps --test \"out/test/*.test.js\"",
"test:fuzz": "node esbuild.mjs --tests && node --enable-source-maps --test out/test/fuzzing.test.js",
"vscode:prepublish": "npm run typecheck && npm run compile:production",
"package": "vsce package --no-dependencies"
},
"dependencies": {
"@vscode/debugadapter": "^1.68.0",
"@vscode/debugprotocol": "^1.68.0",
"jsonc-parser": "^3.3.1",
"react": "^19.3.1",
"react-dom": "^19.3.1"
},
"devDependencies": {
"@types/node": "^26.6.6",
"@types/react": "^19.3.0",
"@types/react-dom": "^19.3.0",
"@types/vscode": "~1.90.0",
"@vscode/codicons": "^0.0.46-24",
"@vscode/vsce": "^4.1.0",
"esbuild": "^0.28.2",
"fast-check": "4.10.2",
"prettier": "^3.9.10",
"typescript": "^7.0.2"
},
"overrides": {
"@vscode/vsce": {
"minimatch": "^11.0.4"
}
}
}