package.json
7.11 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
{
"name": "lldb-vscode",
"displayName": "LLDB native Debug stub",
"version": "0.1.0",
"publisher": "llvm.org",
"description": "Debug adapter for LLDB which uses a C++ tool to interface directly with LLDB.",
"author": {
"name": "Greg Clayton",
"email": "clayborg@gmail.com"
},
"license": "LLVM",
"keywords": [
"multi-root ready"
],
"engines": {
"vscode": "^1.18.0",
"node": "^7.9.0"
},
"icon": "images/lldb.png",
"categories": [
"Debuggers"
],
"private": true,
"devDependencies": {
"@types/node": "7.0.43",
"@types/mocha": "2.2.45",
"typescript": "2.6.2",
"mocha": "4.0.1",
"vscode": "1.1.10",
"vscode-debugadapter-testsupport": "1.25.0",
"tslint": "5.8.0",
"vsce": "1.35.0"
},
"contributes": {
"debuggers": [
{
"type": "lldb-vscode",
"label": "Native LLDB Debugger",
"enableBreakpointsFor": {
"languageIds": [
"ada",
"arm",
"asm",
"c",
"cpp",
"crystal",
"d",
"fortan",
"fortran-modern",
"nim",
"objective-c",
"objectpascal",
"pascal",
"rust",
"swift"
]
},
"program": "./bin/lldb-vscode",
"windows": {
"program": "./bin/lldb-vscode.exe"
},
"configurationAttributes": {
"launch": {
"required": [
"program"
],
"properties": {
"program": {
"type": "string",
"description": "Path to the program to debug."
},
"args": {
"type": [ "array", "string" ],
"description": "Program arguments.",
"default": []
},
"cwd": {
"type": "string",
"description": "Program working directory.",
"default": "${workspaceRoot}"
},
"env": {
"type": "array",
"description": "Additional environment variables.",
"default": []
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": false
},
"disableASLR": {
"type": "boolean",
"description": "Enable or disable Address space layout randomization if the debugger supports it.",
"default": true
},
"disableSTDIO": {
"type": "boolean",
"description": "Don't retrieve STDIN, STDOUT and STDERR as the program is running.",
"default": false
},
"shellExpandArguments": {
"type": "boolean",
"description": "Expand program arguments as a shell would without actually launching the program in a shell.",
"default": false
},
"detachOnError": {
"type": "boolean",
"description": "Detach from the program.",
"default": false
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
},
"sourcePath": {
"type": "string",
"description": "Specify a source path to remap \"./\" to allow full paths to be used when setting breakpoints in binaries that have relative source paths."
},
"sourceMap": {
"type": "array",
"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and desination pathname. Overrides sourcePath.",
"default": []
},
"debuggerRoot": {
"type": "string",
"description": "Specify a working directory to set the debug adaptor to so relative object files can be located."
},
"initCommands": {
"type": "array",
"description": "Initialization commands executed upon debugger startup.",
"default": []
},
"preRunCommands": {
"type": "array",
"description": "Commands executed just before the program is launched.",
"default": []
},
"stopCommands": {
"type": "array",
"description": "Commands executed each time the program stops.",
"default": []
},
"exitCommands": {
"type": "array",
"description": "Commands executed at the end of debugging session.",
"default": []
}
}
},
"attach": {
"properties": {
"program": {
"type": "string",
"description": "Path to the program to attach to."
},
"pid": {
"type": [
"number",
"string"
],
"description": "System process ID to attach to."
},
"waitFor": {
"type": "boolean",
"description": "If set to true, then wait for the process to launch by looking for a process with a basename that matches `program`. No process ID needs to be specified when using this flag.",
"default": true
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": true
},
"sourcePath": {
"type": "string",
"description": "Specify a source path to remap \"./\" to allow full paths to be used when setting breakpoints in binaries that have relative source paths."
},
"sourceMap": {
"type": "array",
"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and desination pathname. Overrides sourcePath.",
"default": []
},
"debuggerRoot": {
"type": "string",
"description": "Specify a working directory to set the debug adaptor to so relative object files can be located."
},
"attachCommands": {
"type": "array",
"description": "Custom commands that are executed instead of attaching to a process ID or to a process by name. These commands may optionally create a new target and must perform an attach. A valid process must exist after these commands complete or the \"attach\" will fail.",
"default": []
},
"initCommands": {
"type": "array",
"description": "Initialization commands executed upon debugger startup.",
"default": []
},
"preRunCommands": {
"type": "array",
"description": "Commands executed just before the program is attached to.",
"default": []
},
"stopCommands": {
"type": "array",
"description": "Commands executed each time the program stops.",
"default": []
},
"exitCommands": {
"type": "array",
"description": "Commands executed at the end of debugging session.",
"default": []
}
}
}
},
"initialConfigurations": [
{
"type": "lldb-vscode",
"request": "launch",
"name": "Debug",
"program": "${workspaceRoot}/<your program>",
"args": [],
"env": [],
"cwd": "${workspaceRoot}"
}
],
"configurationSnippets": [
{
"label": "LLDB: Launch",
"description": "",
"body": {
"type": "lldb-vscode",
"request": "launch",
"name": "${2:Launch}",
"program": "^\"\\${workspaceRoot}/${1:<your program>}\"",
"args": [],
"env": [],
"cwd": "^\"\\${workspaceRoot}\""
}
}
]
}
]
}
}