forked from llvm/vscode-lldb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
264 lines (264 loc) · 8.31 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
{
"name": "gdb-dap",
"displayName": "GDB DAP",
"version": "0.2.8",
"publisher": "OlegTolmatcev",
"homepage": "https://sourceware.org/gdb/",
"description": "GDB debugging from VSCode",
"license": "Apache 2.0 License with LLVM exceptions",
"repository": {
"type": "git",
"url": "https://github.com/oltolm/vscode-gdb.git"
},
"bugs": {
"url": "https://github.com/oltolm/vscode-gdb/issues"
},
"keywords": [
"C",
"C++",
"GDB"
],
"engines": {
"vscode": "^1.92.0"
},
"categories": [
"Debuggers"
],
"devDependencies": {
"@types/node": "^22.5.0",
"@types/vscode": "~1.92.0",
"@vscode/vsce": "^3.0.0",
"prettier-plugin-curly": "^0.2.2",
"prettier": "^3.3.3",
"typescript": "^5.5.4"
},
"activationEvents": [
"onDebug"
],
"main": "./out/extension",
"scripts": {
"vscode:prepublish": "tsc -p ./",
"watch": "tsc -watch -p ./",
"format": "npx prettier './src-ts/' --write",
"package": "vsce package --out ./out/gdb-dap.vsix",
"publish": "vsce publish",
"vscode-uninstall": "code --uninstall-extension gnu.gdb-dap",
"vscode-install": "code --install-extension ./out/gdb-dap.vsix"
},
"contributes": {
"languages": [
{
"id": "gdb.disassembly",
"aliases": [
"Disassembly"
],
"extensions": [
".disasm"
]
}
],
"grammars": [
{
"language": "gdb.disassembly",
"scopeName": "source.disassembly",
"path": "./syntaxes/disassembly.json"
}
],
"configuration": {
"type": "object",
"title": "gdb-dap",
"properties": {
"gdb-dap.executable-path": {
"scope": "resource",
"type": "string",
"description": "The path to the gdb binary."
},
"gdb-dap.log-path": {
"scope": "resource",
"type": "string",
"description": "Enable DAP logging. Logs are written to filename. If no filename is given, logging is stopped."
},
"gdb-dap.log-level": {
"scope": "resource",
"type": "integer",
"description": "Set the DAP logging level. The default is ‘1’, which logs the DAP protocol, whatever debug messages the developers thought were useful, and unexpected exceptions. Level ‘2’ can be used to log all exceptions, including ones that are considered to be expected. For example, a failure to parse an expression would be considered a normal exception and not normally be logged.",
"default": 1
},
"gdb-dap.environment": {
"scope": "resource",
"type": "object",
"default": {},
"description": "The environment of the gdb process.",
"additionalProperties": {
"type": "string"
}
}
}
},
"breakpoints": [
{
"language": "ada"
},
{
"language": "arm"
},
{
"language": "asm"
},
{
"language": "c"
},
{
"language": "cpp"
},
{
"language": "crystal"
},
{
"language": "d"
},
{
"language": "fortan"
},
{
"language": "fortran-modern"
},
{
"language": "nim"
},
{
"language": "objective-c"
},
{
"language": "objectpascal"
},
{
"language": "pascal"
},
{
"language": "rust"
},
{
"language": "swift"
}
],
"debuggers": [
{
"type": "gdb-dap",
"label": "Native GDB Debugger",
"program": "./bin/gdb",
"args": [],
"windows": {
"program": "./bin/gdb.exe"
},
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"args": {
"type": [
"array"
],
"description": "If provided, this should be an array of strings. These strings are provided as command-line arguments to the inferior, as if by set args. See Arguments.",
"default": []
},
"cwd": {
"type": "string",
"description": "If provided, this should be a string. GDB will change its working directory to this directory, as if by the cd command (see Working Directory). The launched program will inherit this as its working directory. Note that change of directory happens before the program parameter is processed. This will affect the result if program is a relative filename.",
"default": "${workspaceFolder}"
},
"env": {
"type": "object",
"description": "If provided, this should be an object. Each key of the object will be used as the name of an environment variable; each value must be a string and will be the value of that variable. The environment of the inferior will be set to exactly as passed in. See Environment.",
"default": {}
},
"program": {
"type": "string",
"description": "If provided, this is a string that specifies the program to use. This corresponds to the file command. See Files."
},
"stopAtBeginningOfMainSubprogram": {
"type": "boolean",
"description": "If provided, this must be a boolean. When ‘True’, GDB will set a temporary breakpoint at the program’s main procedure, using the same approach as the start command. See Starting.",
"default": false
},
"stopOnEntry": {
"type": "boolean",
"description": "If provided, this must be a boolean. When ‘True’, GDB will set a temporary breakpoint at the program’s first instruction, using the same approach as the starti command. See Starting.",
"default": true
}
}
},
"attach": {
"required": [],
"properties": {
"pid": {
"type": [
"number",
"string"
],
"description": "The process ID to which GDB should attach. See Attach."
},
"program": {
"type": "string",
"description": "If provided, this is a string that specifies the program to use. This corresponds to the file command. See Files. In some cases, GDB can automatically determine which program is running. However, for many remote targets, this is not the case, and so this should be supplied."
},
"target": {
"type": "string",
"description": "The target to which GDB should connect. This is a string and is passed to the target remote command. See Connecting."
}
}
}
},
"initialConfigurations": [
{
"type": "gdb-dap",
"request": "launch",
"name": "Debug",
"program": "${workspaceFolder}/<your program>",
"args": [],
"cwd": "${workspaceFolder}",
"stopOnEntry": true
}
],
"configurationSnippets": [
{
"label": "GDB: Launch",
"description": "",
"body": {
"type": "gdb-dap",
"request": "launch",
"name": "${2:Launch}",
"program": "^\"\\${workspaceFolder}/${1:<your program>}\"",
"args": [],
"cwd": "^\"\\${workspaceFolder}\"",
"stopOnEntry": true
}
},
{
"label": "GDB: Attach",
"description": "",
"body": {
"type": "gdb-dap",
"request": "attach",
"name": "${2:Attach}",
"program": "${1:<your program>}"
}
},
{
"label": "GDB: Load Coredump",
"description": "",
"body": {
"type": "gdb-dap",
"request": "attach",
"name": "${2:Core}",
"program": "${1:<your program>}",
"coreFile": "${1:<your program>}.core"
}
}
]
}
]
}
}