-
Notifications
You must be signed in to change notification settings - Fork 52
/
package.json
406 lines (406 loc) · 11.2 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
{
"name": "vscode-rdbg",
"displayName": "VSCode rdbg Ruby Debugger",
"description": "Ruby's rdbg debugger support for VSCode",
"publisher": "KoichiSasada",
"version": "0.2.2",
"license": "MIT",
"icon": "icon.png",
"author": {
"name": "Koichi Sasada",
"email": "[email protected]",
"url": "https://www.atdot.net/~ko1/"
},
"homepage": "https://github.com/ruby/vscode-rdbg",
"repository": {
"type": "git",
"url": "https://github.com/ruby/vscode-rdbg.git"
},
"bugs": {
"url": "https://github.com/ruby/vscode-rdbg/issues"
},
"categories": [
"Debuggers"
],
"keywords": [
"debug",
"debugging",
"debugger",
"ruby",
"rdbg"
],
"engines": {
"vscode": "^1.65.0"
},
"activationEvents": [
"onLanguage:ruby",
"onDebug",
"workspaceContains:.vscode/rdbg_autoattach.json",
"onView:rdbg.inspector"
],
"main": "./out/extension.js",
"contributes": {
"breakpoints": [
{
"language": "ruby"
},
{
"language": "haml"
},
{
"language": "slim"
}
],
"debuggers": [
{
"type": "rdbg",
"label": "Ruby (rdbg)",
"languages": [
"ruby"
],
"configurationAttributes": {
"attach": {
"properties": {
"rdbgPath": {
"type": "string",
"description": "Location of the rdbg executable"
},
"debugPort": {
"type": "string",
"description": "UNIX domain socket name or TPC/IP host:port"
},
"showProtocolLog": {
"type": "boolean",
"description": "Show a log of DAP requests, events, and responses",
"default": false
},
"localfs": {
"type": "boolean",
"description": "true if the VSCode and debugger run on a same machine",
"default": false
},
"localfsMap": {
"type": "string",
"description": "Specify pairs of remote root path and local root path like `/remote_dir:/local_dir`. `/remote_dir:$(workspaceFolder)` is useful. You can specify multiple pairs like `/rem1:/loc1,/rem2:/loc2` by concatenating with `,`."
},
"env": {
"type": "object",
"description": "Additional environment variables to pass to the rdbg process",
"default": {}
}
}
},
"launch": {
"required": [
"script"
],
"properties": {
"command": {
"type": "string",
"description": "Command name (ruby, rake, bin/rails, bundle exec ruby, etc)",
"default": "ruby"
},
"script": {
"type": "string",
"description": "Absolute path to a Ruby file.",
"default": "${workspaceFolder}/${command:AskForProgramName}"
},
"cwd": {
"type": "string",
"description": "Directory to execute the program in",
"default": "${workspaceFolder}"
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program",
"items": {
"type": "string"
},
"default": []
},
"env": {
"type": "object",
"description": "Additional environment variables to pass to the debugging (and debugged) process",
"default": {}
},
"showProtocolLog": {
"type": "boolean",
"description": "Show a log of DAP requests, events, and responses",
"default": false
},
"useBundler": {
"type": "boolean",
"description": "Execute Ruby programs with `bundle exec` instead of directly",
"default": false
},
"bundlePath": {
"type": "string",
"description": "Location of the bundle executable"
},
"rdbgPath": {
"type": "string",
"description": "Location of the rdbg executable"
},
"askParameters": {
"type": "boolean",
"description": "Ask parameters at first."
},
"debugPort": {
"type": "string",
"description": "UNIX domain socket name or TPC/IP host:port"
},
"waitLaunchTime": {
"type": "number",
"description": "Wait time before connection in milliseconds"
},
"localfs": {
"type": "boolean",
"description": "true if the VSCode and debugger run on a same machine",
"default": false
},
"useTerminal": {
"type": "boolean",
"description": "Create a new terminal and then execute commands there",
"default": false
}
}
}
},
"configurationSnippets": [
{
"label": "Ruby: launch current file with rdbg",
"description": "A new configuration to launch a current file with rdbg",
"body": {
"type": "rdbg",
"name": "Debug current file",
"request": "launch",
"script": "${file}",
"askParameters": true
}
},
{
"label": "Ruby: attach process with rdbg",
"description": "A new configuration to attach Ruby process with rdbg",
"body": {
"type": "rdbg",
"name": "Attach rdbg",
"request": "attach"
}
}
]
}
],
"configuration": {
"title": "Ruby rdbg debugger",
"properties": {
"rdbg.useBundler": {
"type": "boolean",
"default": true,
"description": "Run `bundle exec` if Gemfile is available."
},
"rdbg.saveBreakpoints": {
"type": "boolean",
"default": false,
"description": "(experimental) Save breakpoints information to '.rdbg.breakpoints' for rdbg command"
},
"rdbg.enableTraceInspector": {
"type": "boolean",
"default": true,
"description": "(experimental) Enable TraceInspector view. TraceInspector visualizes the trace log in Tree View. This feature will work in the version of debug.gem is 1.8.0 or higher."
},
"rdbg.enableTraceParameters": {
"type": "boolean",
"default": true,
"description": "(experimental) Enable tracing parameters in Call events."
},
"rdbg.enableTraceReturnValue": {
"type": "boolean",
"default": true,
"description": "(experimental) Enable tracing Return events."
},
"rdbg.maxTraceLogSize": {
"type": "number",
"default": 50000,
"description": "(experimental) Maximum size of trace log that a debugger will save"
},
"rdbg.rubyVersionManager": {
"type": "string",
"enum": [
"shadowenv",
"chruby",
"asdf",
"rbenv",
"rvm",
"none"
],
"default": "none"
}
}
},
"views": {
"debug": [
{
"id": "rdbg.inspector",
"name": "Trace Inspector"
}
]
},
"commands": [
{
"command": "rdbg.inspector.openPrevLog",
"title": "Go back to the previous log",
"icon": "$(arrow-up)"
},
{
"command": "rdbg.inspector.openNextLog",
"title": "Go to the next trace log",
"icon": "$(arrow-down)"
},
{
"command": "rdbg.inspector.disableTraceLine",
"title": "✓ Trace Line"
},
{
"command": "rdbg.inspector.enableTraceLine",
"title": "\u200B Trace Line"
},
{
"command": "rdbg.inspector.disableTraceCall",
"title": "✓ Trace Call / Return"
},
{
"command": "rdbg.inspector.enableTraceCall",
"title": "\u200B Trace Call / Return"
},
{
"command": "rdbg.inspector.disableRecordAndReplay",
"title": "✓ Record And Replay (Slow)"
},
{
"command": "rdbg.inspector.enableRecordAndReplay",
"title": "\u200B Record And Replay (Slow)",
"enablement": "traceLineEnabled"
},
{
"command": "rdbg.inspector.enterFilter",
"title": "\u200B Apply filter by RegExp"
},
{
"command": "rdbg.inspector.reenterFilter",
"title": "✓ Apply filter by RegExp"
},
{
"command": "rdbg.inspector.copyLog",
"title": "Copy Trace log"
},
{
"command": "rdbg.inspector.enableTraceClanguageCall",
"title": "\u200B Trace c_call / c_return"
},
{
"command": "rdbg.inspector.disableTraceClanguageCall",
"title": "✓ Trace c_call / c_return"
}
],
"menus": {
"view/title": [
{
"command": "rdbg.inspector.openPrevLog",
"when": "debuggersAvailable && inDebugMode && debugState == stopped && view == rdbg.inspector",
"group": "navigation"
},
{
"command": "rdbg.inspector.openNextLog",
"when": "debuggersAvailable && inDebugMode && debugState == stopped && view == rdbg.inspector",
"group": "navigation"
},
{
"command": "rdbg.inspector.disableTraceLine",
"when": "debuggersAvailable && view == rdbg.inspector && traceLineEnabled == true",
"group": "rdbg@1"
},
{
"command": "rdbg.inspector.enableTraceLine",
"when": "debuggersAvailable && view == rdbg.inspector && traceLineEnabled == false",
"group": "rdbg@1"
},
{
"command": "rdbg.inspector.disableTraceCall",
"when": "debuggersAvailable && view == rdbg.inspector && traceCallEnabled == true",
"group": "rdbg@2"
},
{
"command": "rdbg.inspector.enableTraceCall",
"when": "debuggersAvailable && view == rdbg.inspector && traceCallEnabled == false",
"group": "rdbg@2"
},
{
"command": "rdbg.inspector.disableRecordAndReplay",
"when": "debuggersAvailable && view == rdbg.inspector && recordAndReplayEnabled == true",
"group": "rdbg2@1"
},
{
"command": "rdbg.inspector.enableRecordAndReplay",
"when": "debuggersAvailable && view == rdbg.inspector && recordAndReplayEnabled == false",
"group": "rdbg2@1"
},
{
"command": "rdbg.inspector.enterFilter",
"when": "debuggersAvailable && view == rdbg.inspector && filterEntered == false",
"group": "rdbg2@2"
},
{
"command": "rdbg.inspector.reenterFilter",
"when": "debuggersAvailable && view == rdbg.inspector && filterEntered == true",
"group": "rdbg2@2"
},
{
"command": "rdbg.inspector.enableTraceClanguageCall",
"when": "debuggersAvailable && view == rdbg.inspector && traceClanguageCallEnabled == false",
"group": "rdbg2@3"
},
{
"command": "rdbg.inspector.disableTraceClanguageCall",
"when": "debuggersAvailable && view == rdbg.inspector && traceClanguageCallEnabled == true",
"group": "rdbg2@3"
}
],
"view/item/context": [
{
"command": "rdbg.inspector.copyLog",
"when": "view == rdbg.inspector"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"format:eslint": "eslint src --ext ts --fix",
"format:prettier": "prettier --check . --write",
"format": "npm run format:eslint && npm run format:prettier",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"test": "node ./out/test/runTest.js",
"//": "`echo y` is used to allow to run tests without LICENSE.",
"ui-test": "npm run compile && echo y | extest setup-and-run -c 1.65.0 -m out/ui-test/config.js out/ui-test/suite/*.js"
},
"devDependencies": {
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.7",
"@types/vscode": "^1.65.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vscode/debugprotocol": "^1.65.0",
"@vscode/test-electron": "^2.3.9",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"glob": "^10.3.12",
"mocha": "^10.4.0",
"mocha-junit-reporter": "^2.2.1",
"prettier": "^3.2.5",
"typescript": "^5.4.5",
"vscode-extension-tester": "^7.3.2"
}
}