1{
2	"name": "lldb-vscode",
3	"displayName": "LLDB native Debug stub",
4	"version": "0.1.0",
5	"publisher": "llvm.org",
6	"description": "Debug adapter for LLDB which uses a C++ tool to interface directly with LLDB.",
7	"author": {
8		"name": "Greg Clayton",
9		"email": "[email protected]"
10	},
11	"license": "LLVM",
12	"keywords": [
13		"multi-root ready"
14	],
15	"engines": {
16		"vscode": "^1.18.0",
17		"node": "^7.9.0"
18	},
19	"icon": "images/lldb.png",
20	"categories": [
21		"Debuggers"
22	],
23	"private": true,
24	"devDependencies": {
25		"@types/node": "7.0.43",
26		"@types/mocha": "2.2.45",
27		"typescript": "2.6.2",
28		"mocha": "4.0.1",
29		"vscode": "1.1.10",
30		"vscode-debugadapter-testsupport": "1.25.0",
31		"tslint": "5.8.0",
32		"vsce": "1.35.0"
33	},
34	"contributes": {
35		"debuggers": [
36			{
37				"type": "lldb-vscode",
38				"label": "Native LLDB Debugger",
39				"enableBreakpointsFor": {
40					"languageIds": [
41						"ada",
42						"arm",
43						"asm",
44						"c",
45						"cpp",
46						"crystal",
47						"d",
48						"fortan",
49						"fortran-modern",
50						"nim",
51						"objective-c",
52						"objectpascal",
53						"pascal",
54						"rust",
55						"swift"
56					]
57				},
58				"program": "./bin/lldb-vscode",
59				"windows": {
60					"program": "./bin/lldb-vscode.exe"
61				},
62				"configurationAttributes": {
63					"launch": {
64						"required": [
65							"program"
66						],
67						"properties": {
68							"program": {
69								"type": "string",
70								"description": "Path to the program to debug."
71							},
72							"args": {
73								"type": [ "array", "string" ],
74								"description": "Program arguments.",
75								"default": []
76							},
77							"cwd": {
78								"type": "string",
79								"description": "Program working directory.",
80								"default": "${workspaceRoot}"
81							},
82							"env": {
83								"type": "array",
84								"description": "Additional environment variables.",
85								"default": []
86							},
87							"stopOnEntry": {
88								"type": "boolean",
89								"description": "Automatically stop after launch.",
90								"default": false
91							},
92							"disableASLR": {
93								"type": "boolean",
94								"description": "Enable or disable Address space layout randomization if the debugger supports it.",
95								"default": true
96							},
97							"disableSTDIO": {
98								"type": "boolean",
99								"description": "Don't retrieve STDIN, STDOUT and STDERR as the program is running.",
100								"default": false
101							},
102							"shellExpandArguments": {
103								"type": "boolean",
104								"description": "Expand program arguments as a shell would without actually launching the program in a shell.",
105								"default": false
106							},
107							"detachOnError": {
108								"type": "boolean",
109								"description": "Detach from the program.",
110								"default": false
111							},
112							"sourcePath": {
113								"type": "string",
114								"description": "Specify a source path to remap \"./\" to allow full paths to be used when setting breakpoints in binaries that have relative source paths."
115							},
116							"sourceMap": {
117								"type": "array",
118								"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and destination pathname. Overrides sourcePath.",
119								"default": []
120							},
121							"debuggerRoot": {
122								"type": "string",
123								"description": "Specify a working directory to set the debug adaptor to so relative object files can be located."
124							},
125							"targetTriple": {
126								"type": "string",
127								"description": "Triplet of the target architecture to override value derived from the program file."
128							},
129							"platformName": {
130								"type": "string",
131								"description": "Name of the execution platform to override value derived from the program file."
132							},
133							"initCommands": {
134									"type": "array",
135									"description": "Initialization commands executed upon debugger startup.",
136									"default": []
137							},
138							"preRunCommands": {
139									"type": "array",
140									"description": "Commands executed just before the program is launched.",
141									"default": []
142							},
143							"launchCommands": {
144									"type": "array",
145									"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.",
146									"default": []
147							},
148							"stopCommands": {
149									"type": "array",
150									"description": "Commands executed each time the program stops.",
151									"default": []
152							},
153							"exitCommands": {
154									"type": "array",
155									"description": "Commands executed at the end of debugging session.",
156									"default": []
157							}
158						}
159					},
160					"attach": {
161						"properties": {
162							"program": {
163								"type": "string",
164									"description": "Path to the program to attach to."
165							},
166							"pid": {
167								"type": [
168										"number",
169										"string"
170								],
171								"description": "System process ID to attach to."
172							},
173							"waitFor": {
174								"type": "boolean",
175								"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.",
176								"default": true
177							},
178							"sourcePath": {
179								"type": "string",
180								"description": "Specify a source path to remap \"./\" to allow full paths to be used when setting breakpoints in binaries that have relative source paths."
181							},
182							"sourceMap": {
183								"type": "array",
184								"description": "Specify an array of path remappings; each element must itself be a two element array containing a source and destination pathname. Overrides sourcePath.",
185								"default": []
186							},
187							"debuggerRoot": {
188								"type": "string",
189								"description": "Specify a working directory to set the debug adaptor to so relative object files can be located."
190							},
191							"targetTriple": {
192								"type": "string",
193								"description": "Triplet of the target architecture to override value derived from the program file."
194							},
195							"platformName": {
196								"type": "string",
197								"description": "Name of the execution platform to override value derived from the program file."
198							},
199							"attachCommands": {
200								"type": "array",
201								"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.",
202								"default": []
203							},
204							"initCommands": {
205								"type": "array",
206								"description": "Initialization commands executed upon debugger startup.",
207								"default": []
208							},
209							"preRunCommands": {
210								"type": "array",
211								"description": "Commands executed just before the program is attached to.",
212								"default": []
213							},
214							"stopCommands": {
215								"type": "array",
216								"description": "Commands executed each time the program stops.",
217								"default": []
218							},
219							"exitCommands": {
220								"type": "array",
221								"description": "Commands executed at the end of debugging session.",
222								"default": []
223							},
224							"coreFile": {
225								"type": "string",
226								"description": "Path to the core file to debug."
227							}
228						}
229					}
230				},
231				"initialConfigurations": [
232					{
233						"type": "lldb-vscode",
234						"request": "launch",
235						"name": "Debug",
236						"program": "${workspaceRoot}/<your program>",
237						"args": [],
238						"env": [],
239						"cwd": "${workspaceRoot}"
240					}
241				],
242				"configurationSnippets": [
243					{
244						"label": "LLDB: Launch",
245						"description": "",
246						"body": {
247							"type": "lldb-vscode",
248							"request": "launch",
249							"name": "${2:Launch}",
250							"program": "^\"\\${workspaceRoot}/${1:<your program>}\"",
251							"args": [],
252							"env": [],
253							"cwd": "^\"\\${workspaceRoot}\""
254						}
255					}
256				]
257			}
258		]
259	}
260}
261