forked from tomblind/local-lua-debugger-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
218 lines (218 loc) · 9.25 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
{
"name": "local-lua-debugger-vscode",
"publisher": "tomblind",
"version": "0.3.3",
"description": "Local Lua Debugger - simple Lua debugger with no dependencies",
"displayName": "Local Lua Debugger",
"icon": "resources/Lua-Logo_128x128.png",
"repository": {
"type": "github",
"url": "https://github.com/tomblind/local-lua-debugger-vscode.git"
},
"author": "[email protected]",
"license": "MIT",
"categories": [
"Debuggers"
],
"keywords": [
"lua",
"luajit",
"tstl",
"typescripttolua",
"typescript-to-lua",
"love",
"löve",
"corona"
],
"scripts": {
"lint-debugger": "cd debugger && eslint . && cd ..",
"lint-extension": "cd extension && eslint . && cd ..",
"lint": "npm run lint-debugger && npm run lint-extension",
"build-debugger": "tstl -p debugger",
"build-extension": "tsc -p extension",
"build": "npm run build-debugger && npm run build-extension",
"bundle": "npm run clean && npm run lint && npm run build && vsce package",
"publish": "npm run bundle && vsce publish",
"clean": "rm -f debugger/*.lua && rm -f debugger/*.lua.map && rm -f extension/*.js && rm -f extension/*.js.map && rm -f *.vsix"
},
"dependencies": {
"vscode-debugadapter": "^1.48.0"
},
"devDependencies": {
"@types/node": "^16.4.13",
"@types/vscode": "^1.44.0",
"@typescript-eslint/eslint-plugin": "^4.29.1",
"@typescript-eslint/parser": "^4.29.1",
"eslint": "^7.32.0",
"typescript": "^4.3.5",
"typescript-to-lua": "^1.1.1",
"vsce": "^1.96.1"
},
"main": "./extension/extension.js",
"engines": {
"vscode": "^1.44.0"
},
"activationEvents": [
"onDebug"
],
"contributes": {
"configuration": [
{
"title": "Local Lua Debugger",
"properties": {
"lua-local.interpreter": {
"type": "string",
"default": "",
"description": "Lua stand-alone interpreter to use when none is specified in launch.json"
}
}
}
],
"breakpoints": [
{
"language": "lua"
}
],
"debuggers": [
{
"type": "lua-local",
"label": "Local Lua Debugger",
"program": "./extension/debugAdapter.js",
"runtime": "node",
"languages": [
"lua"
],
"initialConfigurations": [
{
"name": "Debug Lua Interpreter",
"type": "lua-local",
"request": "launch",
"program": {
"lua": "lua",
"file": "${file}"
}
},
{
"name": "Debug Custom Lua Environment",
"type": "lua-local",
"request": "launch",
"program": {
"command": "command"
},
"args": []
}
],
"configurationAttributes": {
"launch": {
"properties": {
"scriptRoots": {
"type": "array",
"items": {
"type": "string"
},
"description": "Alternate paths to find lua scripts"
},
"breakInCoroutines": {
"type": "boolean",
"description": "Break on errors inside of coroutines",
"default": true
},
"scriptFiles": {
"type": "array",
"items": {
"type": "string"
},
"description": "Glob pattern specifying Lua scripts to be debugged (required for breakpoints in source mapped files)"
},
"ignorePatterns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Lua patterns specifying scripts to be ignored when stepping"
},
"stepUnmappedLines": {
"type": "boolean",
"description": "Step into lua when stepping through unmapped lines in source-mapped files",
"default": true
},
"verbose": {
"type": "boolean",
"description": "Enable verbose output",
"default": false
},
"stopOnEntry": {
"type": "boolean",
"description": "Pause debugging as soon as debugger attaches to program",
"default": false
},
"cwd": {
"type": "string",
"description": "Working directory to launch Lua in",
"default": "${workspaceFolder}"
},
"env": {
"type": "object",
"description": "Environment variables to set",
"additionalProperties": {
"type": "string"
}
},
"args": {
"type": "array",
"items": {
"type": "string"
},
"description": "Arguments to pass to the program",
"default": []
},
"program": {
"oneOf": [
{
"type": "object",
"properties": {
"lua": {
"type": "string",
"description": "Lua stand-alone interpreter to use",
"default": "lua"
},
"file": {
"type": "string",
"description": "The entry point file of the program",
"default": "${file}"
},
"communication": {
"enum": ["stdio", "pipe"],
"description": "Communication method between extension and debugger.",
"default": "stdio"
}
},
"additionalProperties": false
},
{
"type": "object",
"properties": {
"command": {
"type": "string",
"description": "The custom command to run"
},
"communication": {
"enum": ["stdio", "pipe"],
"description": "Communication method between extension and debugger.",
"default": "stdio"
}
},
"required": [
"command"
],
"additionalProperties": false
}
]
}
}
}
}
}
]
}
}