This repository has been archived by the owner on Jan 15, 2022. It is now read-only.
forked from eclipse-cdt-cloud/cdt-gdb-vscode
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
369 lines (369 loc) · 12.7 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
{
"name": "cdt-gdb-vscode",
"version": "0.0.90",
"description": "VS Code extension for CDT GDB debug adapter",
"publisher": "eclipse-cdt",
"repository": {
"type": "git",
"url": "https://github.com/eclipse-cdt/cdt-gdb-vscode.git"
},
"author": "Ecilpse CDT",
"license": "EPL-2.0",
"icon": "images/cdt_debug_logo.png",
"bugs": {
"url": "https://github.com/eclipse-cdt/cdt-gdb-vscode/issues"
},
"homepage": "https://github.com/eclipse-cdt/cdt-gdb-vscode#readme",
"main": "./out/extension",
"engines": {
"vscode": "^1.26.0"
},
"activationEvents": [
"onDebug",
"onCommand:cdt.gdb.memory.open"
],
"contributes": {
"commands": [
{
"category": "GDB",
"title": "Open Memory Browser",
"command": "cdt.gdb.memory.open"
}
],
"breakpoints": [
{
"language": "c"
},
{
"language": "cpp"
}
],
"debuggers": [
{
"type": "gdb",
"label": "GDB",
"program": "./node_modules/cdt-gdb-adapter/dist/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"gdb": {
"type": "string",
"description": "Path to gdb",
"default": "gdb"
},
"program": {
"type": "string",
"description": "Path to the program to be launched",
"default": "${workspaceFolder}/${command:askProgramPath}"
},
"arguments": {
"type": "string",
"description": "Arguments for the program"
},
"verbose": {
"type": "boolean",
"description": "Produce verbose log output",
"default": "false"
},
"logFile": {
"type": "string",
"description": "Absolute path to the file to log interaction with gdb"
},
"openGdbConsole": {
"type": "boolean",
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
}
}
},
"attach": {
"required": [
"program",
"processId"
],
"properties": {
"gdb": {
"type": "string",
"description": "Path to gdb",
"default": "gdb"
},
"program": {
"type": "string",
"description": "Path to the program to be debugged",
"default": "${workspaceFolder}/${command:askProgramPath}"
},
"processId": {
"type": "string",
"description": "Process ID to attach to",
"default": "${command:askProcessId}"
},
"verbose": {
"type": "boolean",
"description": "Produce verbose log output",
"default": "false"
},
"logFile": {
"type": "string",
"description": "Absolute path to the file to log interaction with gdb"
},
"openGdbConsole": {
"type": "boolean",
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
}
}
}
},
"variables": {
"askProgramPath": "cdt.debug.askProgramPath",
"askProcessId": "cdt.debug.askProcessId"
},
"initialConfigurations": [
{
"type": "gdb",
"request": "launch",
"name": "gdb launch",
"program": "${workspaceFolder}/${command:askProgramPath}"
}
],
"configurationSnippets": [
{
"label": "GDB CDT Local debugging",
"description": "A new configuration for local debugging using GDB.",
"body": {
"type": "gdb",
"request": "launch",
"name": "Name here",
"program": "^\"\\${workspaceFolder}/\\${command:askProgramPath}\""
}
}
]
},
{
"type": "gdbtarget",
"label": "GDB Target",
"program": "./node_modules/cdt-gdb-adapter/dist/debugTargetAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"gdb": {
"type": "string",
"description": "Path to gdb",
"default": "gdb"
},
"program": {
"type": "string",
"description": "Path to the program to be launched",
"default": "${workspaceFolder}/${command:askProgramPath}"
},
"verbose": {
"type": "boolean",
"description": "Produce verbose log output",
"default": "false"
},
"logFile": {
"type": "string",
"description": "Absolute path to the file to log interaction with gdb"
},
"openGdbConsole": {
"type": "boolean",
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
},
"target": {
"type": "object",
"default": {},
"properties": {
"type": {
"type": "string",
"description": "The kind of target debugging to do. This is passed to -target-select (defaults to remote)",
"default": "remote"
},
"parameters": {
"type": "array",
"description": "Target parameters for the type of target. Normally something like localhost:12345. (defaults to `${host}:${port}`)",
"items": {
"type": "string"
},
"default": []
},
"host": {
"type": "string",
"description": "Target host to connect to (defaults to 'localhost', ignored if parameters is set)",
"default": "localhost"
},
"port": {
"type": "string",
"description": "Target port to connect to (defaults to value captured by serverPortRegExp, ignored if parameters is set)",
"default": "gdbserver"
},
"server": {
"type": "string",
"description": "The executable for the target server to launch (e.g. gdbserver or JLinkGDBServerCLExe) (defaults to gdbserver)",
"default": "gdbserver"
},
"serverParameters": {
"type": "array",
"description": "Command line arguments passed to server (defaults to --once :0 ${args.program}).",
"items": {
"type": "string"
},
"default": []
},
"serverPortRegExp": {
"type": "string",
"description": "Regular expression to extract port from by examinging stdout/err of server. Once server is launched, port will be set to this if port is not set. Defaults to matching a string like 'Listening on port 41551' which is what gdbserver provides. Ignored if port or parameters is set",
"default": ""
},
"serverStartupDelay": {
"type": "number",
"description": "Delay after startup before continuing launch, in milliseconds. If serverPortRegExp is provided, it is the delay after that regexp is seen.",
"default": "0"
}
}
}
}
},
"attach": {
"required": [
"program"
],
"properties": {
"gdb": {
"type": "string",
"description": "Path to gdb",
"default": "gdb"
},
"program": {
"type": "string",
"description": "Path to the program to be debugged",
"default": "${workspaceFolder}/${command:askProgramPath}"
},
"verbose": {
"type": "boolean",
"description": "Produce verbose log output",
"default": "false"
},
"logFile": {
"type": "string",
"description": "Absolute path to the file to log interaction with gdb"
},
"openGdbConsole": {
"type": "boolean",
"description": "(UNIX-only) Open a GDB console in your IDE while debugging"
},
"target": {
"type": "object",
"default": {},
"properties": {
"type": {
"type": "string",
"description": "The kind of target debugging to do. This is passed to -target-select (defaults to remote)",
"default": "remote"
},
"parameters": {
"type": "array",
"description": "Target parameters for the type of target. Normally something like localhost:12345. (defaults to `${host}:${port}`)",
"items": {
"type": "string"
},
"default": []
},
"host": {
"type": "string",
"description": "Target host to connect to (defaults to 'localhost', ignored if parameters is set)",
"default": "localhost"
},
"port": {
"type": "string",
"description": "Target port to connect to (defaults to value captured by serverPortRegExp, ignored if parameters is set)",
"default": "gdbserver"
}
}
}
}
}
},
"variables": {
"askProgramPath": "cdt.debug.askProgramPath"
},
"initialConfigurations": [
{
"type": "gdbtarget",
"request": "attach",
"name": "gdb remote attach",
"program": "${workspaceFolder}/${command:askProgramPath}"
}
],
"configurationSnippets": [
{
"label": "GDB CDT Remote debugging - automatic launching of gdbserver",
"description": "A new configuration for remote debugging using GDB with launching of gdbserver.",
"body": {
"type": "gdbtarget",
"request": "launch",
"name": "Name here",
"program": "^\"\\${workspaceFolder}/\\${command:askProgramPath}\""
}
},
{
"label": "GDB CDT Remote debugging",
"description": "A new configuration for remote debugging using GDB.",
"body": {
"type": "gdbtarget",
"request": "attach",
"name": "Name here",
"program": "^\"\\${workspaceFolder}/\\${command:askProgramPath}\""
}
}
]
}
]
},
"scripts": {
"build:tsc": "tsc",
"watch:tsc": "tsc -w",
"build:webpack": "webpack --mode production",
"watch:webpack": "webpack --watch",
"build": "run-s build:*",
"watch": "run-p watch:*",
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node -e \"require('vscode/bin/install')\"",
"vscode:prepublish": "npm run build",
"vsce:package": "vsce package"
},
"dependencies": {
"cdt-gdb-adapter": "*",
"react": "^16.8.1",
"react-dom": "^16.8.1"
},
"devDependencies": {
"@types/chai": "^4.1.7",
"@types/mocha": "^5.2.5",
"@types/node": "^10.12.3",
"@types/react": "^16.8.2",
"@types/react-dom": "^16.8.0",
"chai": "^4.2.0",
"css-loader": "^2.1.0",
"event-stream": "^4.0.1",
"node-sass": "^4.11.0",
"npm-run-all": "^4.1.5",
"sass-loader": "^7.1.0",
"style-loader": "^0.23.1",
"ts-loader": "^5.3.0",
"tslint": "^5.11.0",
"typescript": "^3.1.6",
"vsce": "^1.53.0",
"vscode": "^1.1.21",
"webpack": "^4.25.1",
"webpack-cli": "^3.1.2"
},
"bundledDependencies": [
"cdt-gdb-adapter"
]
}