Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / tools / lldb-dap / package.json
bloba0ae7ac834939d5b5ab1766d78e4177fb2e88e30
2         "name": "lldb-dap",
3         "displayName": "LLDB VSCode",
4         "version": "0.1.0",
5         "publisher": "llvm",
6         "homepage": "https://lldb.llvm.org",
7         "description": "LLDB debugging from VSCode",
8         "license": "Apache 2.0 License with LLVM exceptions",
9         "repository": {
10                 "type": "git",
11                 "url": "https://github.com/llvm/llvm-project.git"
12         },
13         "bugs": {
14                 "url": "https://github.com/llvm/llvm-project/issues"
15         },
16         "keywords": [
17                 "C",
18                 "C++",
19                 "LLVM",
20                 "LLDB"
21         ],
22         "engines": {
23                 "vscode": "^1.18.0"
24         },
25         "categories": [
26                 "Debuggers"
27         ],
28         "devDependencies": {
29                 "@types/node": "7.0.43",
30                 "@types/mocha": "2.2.45",
31                 "typescript": "2.6.2",
32                 "mocha": "4.0.1",
33                 "vscode": "1.1.10",
34                 "vscode-debugadapter-testsupport": "1.25.0",
35                 "tslint": "5.8.0",
36                 "vsce": "^1.36.3"
37         },
38         "contributes": {
39                 "languages": [
40                         {
41                                 "id": "lldb.disassembly",
42                                 "aliases": [
43                                         "Disassembly"
44                                 ],
45                                 "extensions": [
46                                         ".disasm"
47                                 ]
48                         }
49                 ],
50                 "grammars": [
51                         {
52                                 "language": "lldb.disassembly",
53                                 "scopeName": "source.disassembly",
54                                 "path": "./syntaxes/disassembly.json"
55                         }
56                 ],
57                 "breakpoints": [
58                         {
59                                 "language": "ada"
60                         },
61                         {
62                                 "language": "arm"
63                         },
64                         {
65                                 "language": "asm"
66                         },
67                         {
68                                 "language": "c"
69                         },
70                         {
71                                 "language": "cpp"
72                         },
73                         {
74                                 "language": "crystal"
75                         },
76                         {
77                                 "language": "d"
78                         },
79                         {
80                                 "language": "fortan"
81                         },
82                         {
83                                 "language": "fortran-modern"
84                         },
85                         {
86                                 "language": "nim"
87                         },
88                         {
89                                 "language": "objective-c"
90                         },
91                         {
92                                 "language": "objectpascal"
93                         },
94                         {
95                                 "language": "pascal"
96                         },
97                         {
98                                 "language": "rust"
99                         },
100                         {
101                                 "language": "swift"
102                         }
103                 ],
104                 "debuggers": [
105                         {
106                                 "type": "lldb-dap",
107                                 "label": "Native LLDB Debugger",
108                                 "enableBreakpointsFor": {
109                                         "languageIds": [
110                                                 "ada",
111                                                 "arm",
112                                                 "asm",
113                                                 "c",
114                                                 "cpp",
115                                                 "crystal",
116                                                 "d",
117                                                 "fortan",
118                                                 "fortran-modern",
119                                                 "nim",
120                                                 "objective-c",
121                                                 "objectpascal",
122                                                 "pascal",
123                                                 "rust",
124                                                 "swift"
125                                         ]
126                                 },
127                                 "program": "./bin/lldb-dap",
128                                 "windows": {
129                                         "program": "./bin/lldb-dap.exe"
130                                 },
131                                 "configurationAttributes": {
132                                         "launch": {
133                                                 "required": [
134                                                         "program"
135                                                 ],
136                                                 "properties": {
137                                                         "program": {
138                                                                 "type": "string",
139                                                                 "description": "Path to the program to debug."
140                                                         },
141                                                         "args": {
142                                                                 "type": [
143                                                                         "array",
144                                                                         "string"
145                                                                 ],
146                                                                 "description": "Program arguments.",
147                                                                 "default": []
148                                                         },
149                                                         "cwd": {
150                                                                 "type": "string",
151                                                                 "description": "Program working directory.",
152                                                                 "default": "${workspaceRoot}"
153                                                         },
154                                                         "env": {
155                                                                 "type": "array",
156                                                                 "description": "Additional environment variables to set when launching the program. This is an array of strings that contains the variable name followed by an optional '=' character and the environment variable's value.",
157                                                                 "default": []
158                                                         },
159                                                         "stopOnEntry": {
160                                                                 "type": "boolean",
161                                                                 "description": "Automatically stop after launch.",
162                                                                 "default": false
163                                                         },
164                                                         "disableASLR": {
165                                                                 "type": "boolean",
166                                                                 "description": "Enable or disable Address space layout randomization if the debugger supports it.",
167                                                                 "default": true
168                                                         },
169                                                         "disableSTDIO": {
170                                                                 "type": "boolean",
171                                                                 "description": "Don't retrieve STDIN, STDOUT and STDERR as the program is running.",
172                                                                 "default": false
173                                                         },
174                                                         "shellExpandArguments": {
175                                                                 "type": "boolean",
176                                                                 "description": "Expand program arguments as a shell would without actually launching the program in a shell.",
177                                                                 "default": false
178                                                         },
179                                                         "detachOnError": {
180                                                                 "type": "boolean",
181                                                                 "description": "Detach from the program.",
182                                                                 "default": false
183                                                         },
184                                                         "sourcePath": {
185                                                                 "type": "string",
186                                                                 "description": "Specify a source path to remap \"./\" to allow full paths to be used when setting breakpoints in binaries that have relative source paths."
187                                                         },
188                                                         "sourceMap": {
189                                                                 "type": "array",
190                                                                 "description": "Specify an array of path remappings; each element must itself be a two element array containing a source and destination path name. Overrides sourcePath.",
191                                                                 "default": []
192                                                         },
193                                                         "debuggerRoot": {
194                                                                 "type": "string",
195                                                                 "description": "Specify a working directory to set the debug adapter to so relative object files can be located."
196                                                         },
197                                                         "targetTriple": {
198                                                                 "type": "string",
199                                                                 "description": "Triplet of the target architecture to override value derived from the program file."
200                                                         },
201                                                         "platformName": {
202                                                                 "type": "string",
203                                                                 "description": "Name of the execution platform to override value derived from the program file."
204                                                         },
205                                                         "initCommands": {
206                                                                 "type": "array",
207                                                                 "description": "Initialization commands executed upon debugger startup.",
208                                                                 "default": []
209                                                         },
210                                                         "preRunCommands": {
211                                                                 "type": "array",
212                                                                 "description": "Commands executed just before the program is launched.",
213                                                                 "default": []
214                                                         },
215                                                         "postRunCommands": {
216                                                                 "type": "array",
217                                                                 "description": "Commands executed just as soon as the program is successfully launched when it's in a stopped state prior to any automatic continuation.",
218                                                                 "default": []
219                                                         },
220                                                         "launchCommands": {
221                                                                 "type": "array",
222                                                                 "description": "Custom commands that are executed instead of launching a process. A target will be created with the launch arguments prior to executing these commands. The commands may optionally create a new target and must perform a launch. A valid process must exist after these commands complete or the \"launch\" will fail. Launch the process with \"process launch -s\" to make the process to at the entry point since lldb-dap will auto resume if necessary.",
223                                                                 "default": []
224                                                         },
225                                                         "stopCommands": {
226                                                                 "type": "array",
227                                                                 "description": "Commands executed each time the program stops.",
228                                                                 "default": []
229                                                         },
230                                                         "exitCommands": {
231                                                                 "type": "array",
232                                                                 "description": "Commands executed at the end of debugging session.",
233                                                                 "default": []
234                                                         },
235                                                         "runInTerminal": {
236                                                                 "type": "boolean",
237                                                                 "description": "Launch the program inside an integrated terminal in the IDE. Useful for debugging interactive command line programs",
238                                                                 "default": false
239                                                         },
240                                                         "timeout": {
241                                                                 "type": "string",
242                                                                 "description": "The time in seconds to wait for a program to stop at entry point when launching with \"launchCommands\". Defaults to 30 seconds."
243                                                         },
244                                                         "enableAutoVariableSummaries": {
245                                                                 "type": "boolean",
246                                                                 "description": "Enable auto generated summaries for variables when no summaries exist for a given type. This feature can cause performance delays in large projects when viewing variables.",
247                                                                 "default": false
248                                                         },
249                                                         "enableSyntheticChildDebugging": {
250                                                                 "type": "boolean",
251                                                                 "description": "If a variable is displayed using a synthetic children, also display the actual contents of the variable at the end under a [raw] entry. This is useful when creating sythetic child plug-ins as it lets you see the actual contents of the variable.",
252                                                                 "default": false
253                                                         },
254                                                         "commandEscapePrefix": {
255                                                                 "type": "string",
256                                                                 "description": "The escape prefix to use for executing regular LLDB commands in the Debug Console, instead of printing variables. Defaults to a back-tick (`). If it's an empty string, then all expression in the Debug Console are treated as regular LLDB commands.",
257                                                                 "default": "`"
258                                                         }
259                                                 }
260                                         },
261                                         "attach": {
262                                                 "properties": {
263                                                         "program": {
264                                                                 "type": "string",
265                                                                 "description": "Path to the program to attach to."
266                                                         },
267                                                         "pid": {
268                                                                 "type": [
269                                                                         "number",
270                                                                         "string"
271                                                                 ],
272                                                                 "description": "System process ID to attach to."
273                                                         },
274                                                         "waitFor": {
275                                                                 "type": "boolean",
276                                                                 "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.",
277                                                                 "default": true
278                                                         },
279                                                         "sourcePath": {
280                                                                 "type": "string",
281                                                                 "description": "Specify a source path to remap \"./\" to allow full paths to be used when setting breakpoints in binaries that have relative source paths."
282                                                         },
283                                                         "sourceMap": {
284                                                                 "type": "array",
285                                                                 "description": "Specify an array of path remappings; each element must itself be a two element array containing a source and destination path name. Overrides sourcePath.",
286                                                                 "default": []
287                                                         },
288                                                         "debuggerRoot": {
289                                                                 "type": "string",
290                                                                 "description": "Specify a working directory to set the debug adapter to so relative object files can be located."
291                                                         },
292                                                         "targetTriple": {
293                                                                 "type": "string",
294                                                                 "description": "Triplet of the target architecture to override value derived from the program file."
295                                                         },
296                                                         "platformName": {
297                                                                 "type": "string",
298                                                                 "description": "Name of the execution platform to override value derived from the program file."
299                                                         },
300                                                         "attachCommands": {
301                                                                 "type": "array",
302                                                                 "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.",
303                                                                 "default": []
304                                                         },
305                                                         "initCommands": {
306                                                                 "type": "array",
307                                                                 "description": "Initialization commands executed upon debugger startup.",
308                                                                 "default": []
309                                                         },
310                                                         "preRunCommands": {
311                                                                 "type": "array",
312                                                                 "description": "Commands executed just before the program is attached to.",
313                                                                 "default": []
314                                                         },
315                                                         "postRunCommands": {
316                                                                 "type": "array",
317                                                                 "description": "Commands executed just as soon as the program is successfully attached when it's in a stopped state prior to any automatic continuation.",
318                                                                 "default": []
319                                                         },
320                                                         "stopCommands": {
321                                                                 "type": "array",
322                                                                 "description": "Commands executed each time the program stops.",
323                                                                 "default": []
324                                                         },
325                                                         "exitCommands": {
326                                                                 "type": "array",
327                                                                 "description": "Commands executed at the end of debugging session.",
328                                                                 "default": []
329                                                         },
330                                                         "coreFile": {
331                                                                 "type": "string",
332                                                                 "description": "Path to the core file to debug."
333                                                         },
334                                                         "timeout": {
335                                                                 "type": "string",
336                                                                 "description": "The time in seconds to wait for a program to stop when attaching using \"attachCommands\". Defaults to 30 seconds."
337                                                         },
338                                                         "enableAutoVariableSummaries": {
339                                                                 "type": "boolean",
340                                                                 "description": "Enable auto generated summaries for variables when no summaries exist for a given type. This feature can cause performance delays in large projects when viewing variables.",
341                                                                 "default": false
342                                                         },
343                                                         "enableSyntheticChildDebugging": {
344                                                                 "type": "boolean",
345                                                                 "description": "If a variable is displayed using a synthetic children, also display the actual contents of the variable at the end under a [raw] entry. This is useful when creating sythetic child plug-ins as it lets you see the actual contents of the variable.",
346                                                                 "default": false
347                                                         },
348                                                         "commandEscapePrefix": {
349                                                                 "type": "string",
350                                                                 "description": "The escape prefix character to use for executing regular LLDB commands in the Debug Console, instead of printing variables. Defaults to a back-tick (`). If empty, then all expression in the Debug Console are treated as regular LLDB commands.",
351                                                                 "default": "`"
352                                                         }
353                                                 }
354                                         }
355                                 },
356                                 "initialConfigurations": [
357                                         {
358                                                 "type": "lldb-dap",
359                                                 "request": "launch",
360                                                 "name": "Debug",
361                                                 "program": "${workspaceRoot}/<your program>",
362                                                 "args": [],
363                                                 "env": [],
364                                                 "cwd": "${workspaceRoot}"
365                                         }
366                                 ],
367                                 "configurationSnippets": [
368                                         {
369                                                 "label": "LLDB: Launch",
370                                                 "description": "",
371                                                 "body": {
372                                                         "type": "lldb-dap",
373                                                         "request": "launch",
374                                                         "name": "${2:Launch}",
375                                                         "program": "^\"\\${workspaceRoot}/${1:<your program>}\"",
376                                                         "args": [],
377                                                         "env": [],
378                                                         "cwd": "^\"\\${workspaceRoot}\""
379                                                 }
380                                         }
381                                 ]
382                         }
383                 ]
384         }