forked from eclipse-cdt-cloud/vscode-memory-inspector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
448 lines (448 loc) · 14.1 KB
/
package.json
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
{
"name": "memory-inspector",
"displayName": "Memory Inspector",
"description": "A powerful and configurable memory viewer that works with debug adapters",
"version": "1.1.0",
"publisher": "eclipse-cdt",
"author": "Rob Moran <[email protected]>",
"license": "EPL-2.0",
"main": "dist/desktop/extension.js",
"browser": "dist/browser/extension.js",
"repository": "https://github.com/eclipse-cdt-cloud/vscode-memory-inspector",
"qna": "https://github.com/eclipse-cdt-cloud/vscode-memory-inspector/issues",
"icon": "media/cdtcloud.png",
"engines": {
"vscode": "^1.63.0"
},
"categories": [
"Debuggers"
],
"keywords": [
"memory",
"debug"
],
"scripts": {
"prepare": "yarn build",
"clean": "git clean -f -x ./node_modules ./dist",
"build": "webpack --mode production && yarn lint",
"watch": "webpack -w --mode development ",
"lint": "eslint . --ext .ts,.tsx",
"package": "vsce package --yarn",
"serve": "serve --cors -p 3333"
},
"dependencies": {
"@vscode/codicons": "^0.0.32",
"fast-deep-equal": "^3.1.3",
"formik": "^2.4.5",
"lodash": "^4.17.21",
"memoize-one": "^6.0.0",
"nrf-intel-hex": "^1.4.0",
"primeflex": "^3.3.1",
"primereact": "^10.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vscode-messenger": "^0.4.5",
"vscode-messenger-common": "^0.4.5",
"vscode-messenger-webview": "^0.4.5",
"vscode-uri": "^3.0.8"
},
"devDependencies": {
"@types/lodash": "^4.14.202",
"@types/node": "^12.20.0",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"@types/vscode": "^1.63.0",
"@types/vscode-webview": "^1.57.0",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/eslint-plugin-tslint": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/debugprotocol": "^1.55.0",
"@vscode/vsce": "^2.15.0",
"css-loader": "^6.9.0",
"eslint": "^8.29.0",
"eslint-plugin-deprecation": "^1.3.3",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-no-unsanitized": "^4.0.2",
"eslint-plugin-react": "^7.31.11",
"serve": "^14.1.2",
"style-loader": "^3.3.4",
"ts-loader": "^9.4.2",
"tslint": "^6.1.3",
"typescript": "^4.9.3",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
},
"contributes": {
"commands": [
{
"command": "memory-inspector.show",
"title": "Show Memory Inspector",
"icon": "$(file-binary)",
"category": "Memory"
},
{
"command": "memory-inspector.show-variable",
"title": "Show in Memory Inspector",
"category": "Memory"
},
{
"command": "memory-inspector.go-to-value",
"title": "Go to value in Memory Inspector",
"category": "Memory"
},
{
"command": "memory-inspector.toggle-variables-column",
"title": "Toggle Variables Column",
"category": "Memory",
"enablement": "webviewId === memory-inspector.memory"
},
{
"command": "memory-inspector.toggle-ascii-column",
"title": "Toggle ASCII Column",
"category": "Memory",
"enablement": "webviewId === memory-inspector.memory"
},
{
"command": "memory-inspector.toggle-radix-prefix",
"title": "Toggle Radix Prefix",
"category": "Memory",
"enablement": "webviewId === memory-inspector.memory"
},
{
"command": "memory-inspector.show-advanced-display-options",
"title": "Advanced Display Options",
"category": "Memory",
"enablement": "webviewId === memory-inspector.memory"
},
{
"command": "memory-inspector.store-file",
"title": "Store Memory to File...",
"enablement": "memory-inspector.canRead",
"category": "Memory"
},
{
"command": "memory-inspector.apply-file",
"title": "Apply Memory from File...",
"enablement": "memory-inspector.canWrite",
"category": "Memory"
},
{
"command": "memory-inspector.reset-display-options-to-debugger-defaults",
"title": "Reset to Debugger Defaults",
"enablement": "optionsMenu && hasDebuggerDefaults",
"category": "Memory"
},
{
"command": "memory-inspector.reset-display-options",
"title": "Reset to Defaults",
"enablement": "optionsMenu",
"category": "Memory"
}
],
"menus": {
"commandPalette": [
{
"command": "memory-inspector.show",
"when": "memory-inspector.canRead"
},
{
"command": "memory-inspector.show-variable",
"when": "false"
},
{
"command": "memory-inspector.store-file"
},
{
"command": "memory-inspector.apply-file"
}
],
"debug/variables/context": [
{
"command": "memory-inspector.show-variable",
"when": "canViewMemory && memory-inspector.canRead"
},
{
"command": "memory-inspector.go-to-value",
"when": "canViewMemory && memory-inspector.canRead && memory-inspector.variable.isPointer"
},
{
"command": "memory-inspector.store-file",
"when": "canViewMemory && memory-inspector.canRead"
}
],
"view/item/context": [
{
"command": "memory-inspector.show-variable",
"when": "canViewMemory && memory-inspector.canRead"
}
],
"explorer/context": [
{
"command": "memory-inspector.apply-file",
"group": "debug",
"when": "memory-inspector.canWrite && resourceExtname === .hex"
}
],
"editor/context": [
{
"command": "memory-inspector.apply-file",
"group": "debug",
"when": "memory-inspector.canWrite && resourceExtname === .hex"
}
],
"webview/context": [
{
"command": "memory-inspector.toggle-variables-column",
"group": "a_display@1",
"when": "webviewId === memory-inspector.memory && !optionsMenu"
},
{
"command": "memory-inspector.toggle-ascii-column",
"group": "a_display@2",
"when": "webviewId === memory-inspector.memory && !optionsMenu"
},
{
"command": "memory-inspector.toggle-radix-prefix",
"group": "a_display@3",
"when": "webviewId === memory-inspector.memory && !optionsMenu"
},
{
"command": "memory-inspector.store-file",
"group": "c_store-and-restore@1",
"when": "webviewId === memory-inspector.memory && !optionsMenu"
},
{
"command": "memory-inspector.apply-file",
"group": "c_store-and-restore@2",
"when": "webviewId === memory-inspector.memory && !optionsMenu"
},
{
"command": "memory-inspector.show-advanced-display-options",
"group": "z_more",
"when": "webviewId === memory-inspector.memory && !optionsMenu"
},
{
"command": "memory-inspector.go-to-value",
"group": "display@7",
"when": "webviewId === memory-inspector.memory && memory-inspector.variable.isPointer && !optionsMenu"
},
{
"command": "memory-inspector.reset-display-options-to-debugger-defaults",
"group": "a_reset@1",
"when": "webviewId === memory-inspector.memory && optionsMenu && hasDebuggerDefaults"
},
{
"command": "memory-inspector.reset-display-options",
"group": "a_reset@2",
"when": "webviewId === memory-inspector.memory && optionsMenu"
}
]
},
"customEditors": [
{
"viewType": "memory-inspector.inspect",
"displayName": "Memory Inspector",
"selector": [
{
"filenamePattern": "*"
}
],
"priority": "option"
}
],
"configuration": {
"title": "Memory Inspector",
"properties": {
"memory-inspector.loggingVerbosity": {
"type": "string",
"enum": [
"off",
"error",
"warn",
"info",
"debug"
],
"default": "warn",
"description": "Specify the logging verbosity of the memory inspector extension"
},
"memory-inspector.debugTypes": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"gdb",
"embedded-debug",
"arm-debugger"
],
"description": "C-based debuggers to activate (requires debug session restart)"
},
"memory-inspector.refreshOnStop": {
"type": "string",
"enum": [
"on",
"off"
],
"enumDescriptions": [
"Refresh Memory Inspector when the debugger stops (e.g. a breakpoint is hit)",
"Do not automatically refresh when the debugger stops"
],
"default": "on",
"description": "Refresh Memory Inspector windows when the debugger stops"
},
"memory-inspector.periodicRefresh": {
"type": "string",
"enum": [
"always",
"while running",
"off"
],
"markdownEnumDescriptions": [
"Always refresh automatically after the configured `#memory-inspector.periodicRefreshInterval#`",
"Refresh automatically after the configured `#memory-inspector.periodicRefreshInterval#` while the CPU is running",
"Do not automatically refresh after the configured delay"
],
"default": "off",
"markdownDescription": "Refresh Memory Inspectors after the configured `#memory-inspector.periodicRefreshInterval#`."
},
"memory-inspector.periodicRefreshInterval": {
"type": "number",
"default": 500,
"minimum": 500,
"markdownDescription": "Controls the delay in milliseconds after which a Memory Inspector is refreshed automatically. Only applies when `#memory-inspector.periodicRefresh#` is enabled."
},
"memory-inspector.groupings.bytesPerMAU": {
"type": "number",
"enum": [
1,
2,
4,
8,
16
],
"default": 1,
"description": "Default bytes per MAU (Minimum Addressable Unit)"
},
"memory-inspector.groupings.MAUsPerGroup": {
"type": "number",
"enum": [
1,
2,
4,
8,
16
],
"default": 1,
"description": "Default MAUs (Minimum Addressable Units) per group"
},
"memory-inspector.groupings.groupsPerRow": {
"type": [
"string",
"number"
],
"enum": [
"Autofit",
1,
2,
4,
8,
16,
32
],
"default": 4,
"description": "Default groups per row"
},
"memory-inspector.endianness": {
"type": "string",
"enum": [
"Big Endian",
"Little Endian"
],
"enumDescriptions": [
"Most significant byte stored at smallest memory address",
"Least significant byte stored at smallest memory address"
],
"default": "Little Endian",
"description": "Order of bytes within a group"
},
"memory-inspector.columns.variables": {
"type": "boolean",
"default": false,
"description": "Show variables column?"
},
"memory-inspector.columns.ascii": {
"type": "boolean",
"default": false,
"description": "Show ASCII column?"
},
"memory-inspector.scrollingBehavior": {
"type": "string",
"enum": [
"Paginate",
"Grow",
"Auto-Append"
],
"default": "Paginate",
"enumDescriptions": [
"Maintains a consistent memory size, replacing the previous request.",
"Appends new memory to bounds of current request, resulting in a growing list.",
"Automatically appends new memory to the bounds of the current request on reaching the end of the list, resulting in a growing list."
],
"description": "Behavior when adding more memory beyond the current view."
},
"memory-inspector.addressPadding": {
"type": "string",
"enum": [
"Minimal",
"Unpadded",
"32bit",
"64bit"
],
"default": "Minimal",
"enumDescriptions": [
"Pads to largest address width in loaded range.",
"Disables padding.",
"Pads to 32 bits.",
"Pads to 64 bits."
],
"description": "Controls the padding with 0s for memory addresses, enhancing readability by aligning them within a specified bit-width context."
},
"memory-inspector.addressRadix": {
"type": "number",
"enum": [
2,
8,
10,
16
],
"default": 16,
"enumDescriptions": [
"Binary format (base 2)",
"Octal format (base 8)",
"Decimal format (base 10)",
"Hexadecimal format (base 16)"
],
"description": "Specifies the numerical base (radix) for displaying memory addresses."
},
"memory-inspector.showRadixPrefix": {
"type": "boolean",
"default": true,
"description": "Display the radix prefix (e.g., '0x' for hexadecimal, '0b' for binary) before memory addresses."
},
"memory-inspector.allowDebuggerOverwriteSettings": {
"type": "boolean",
"default": true,
"description": "Allow debuggers to overwrite the default memory display settings."
}
}
}
},
"activationEvents": [
"onDebug",
"onStartupFinished"
],
"extensionKind": [
"ui"
]
}