forked from Tencent/LuaPanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
executable file
·204 lines (204 loc) · 5.19 KB
/
package.json
File metadata and controls
executable file
·204 lines (204 loc) · 5.19 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
{
"name": "luapanda",
"displayName": "LuaPanda",
"version": "2.3.0",
"publisher": "stuartwang",
"description": "lua debug adapters for VS Code.",
"author": {
"name": "stuartwang",
"email": "3030078087@qq.com"
},
"license": "BSD",
"keywords": [
"lua",
"debug",
"panda",
"analyzer",
"luaanalyzer"
],
"engines": {
"vscode": "^1.18.0",
"node": "^7.9.0"
},
"icon": "images/luapanda_logo.png",
"categories": [
"Debuggers"
],
"repository": {
"type": "git",
"url": "https://github.com/Tencent/LuaPanda.git"
},
"bugs": {
"url": "https://github.com/Tencent/LuaPanda.git"
},
"scripts": {
"vscode:prepublish": "tsc -p ./src",
"compile": "tsc -p ./src",
"package": "vsce package",
"publish": "vsce package",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"dependencies": {
"await-notify": "1.0.1",
"vscode-debugadapter": "1.27.0",
"vscode-debugprotocol": "1.27.0",
"path-reader": "^1.1.0"
},
"devDependencies": {
"@types/node": "7.0.55",
"@types/mocha": "2.2.48",
"typescript": "2.6.2",
"mocha": "5.0.1",
"vscode": "1.1.10",
"vscode-debugadapter-testsupport": "1.27.0",
"tslint": "5.9.1",
"vsce": "1.37.5"
},
"main": "./out/extension",
"activationEvents": [
"onDebug"
],
"contributes": {
"breakpoints": [
{
"language": "lua"
}
],
"commands": [
{
"command": "luapanda.reloadLuaDebug",
"title": "reloadLuaDebug"
},
{
"command": "luapanda.LuaGarbageCollect",
"title": "LuaGarbageCollect"
}
],
"debuggers": [
{
"type": "lua",
"label": "LuaPanda",
"program": "./out/debugAdapter.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"properties": {
"program": {
"type": "string",
"description": "随调试器启动的可执行文件路径",
"default": ""
},
"args": {
"type": "array",
"description": "program 执行时需要的参数, 结构是一个字符串数组",
"default": []
},
"trace": {
"type": "boolean",
"description": "Enable logging of the Debug Adapter Protocol.",
"default": false
},
"stopOnEntry": {
"type": "boolean",
"description": "调试器启动后自动停止在调用的第一行代码处",
"default": true
},
"cwd": {
"type": "string",
"description": "exactltPathMode : 拼接路径 | autoPathMode : workspace 路径",
"default": "${workspaceFolder}"
},
"isNeedB64EncodeStr": {
"type": "boolean",
"description": "是否使用base64编码传输字符串,默认请开启。",
"default": true
},
"luaFileExtension": {
"type": "string",
"description": "Lua文件后缀",
"default": ""
},
"pathCaseSensitivity": {
"type": "boolean",
"description": "文件路径大小写敏感, 默认true",
"default": true
},
"connectionPort": {
"type": "number",
"description": "设置连接的端口号,默认8818",
"default": 8818
},
"autoReconnect": {
"type": "boolean",
"description": "当连接被lua端断开时,VSCode自动等待重连",
"default": true
},
"TempFilePath": {
"type": "string",
"description": "调试产生的临时文件存放路径,请确保文件夹存在",
"default": "${workspaceFolder}"
},
"logLevel": {
"type": "number",
"description": "日志等级. 0:all所有信息; 1:info仅必要信息(默认); 2:error仅错误",
"default": 1
},
"useCHook": {
"type": "boolean",
"description": "使用C Hook模块, 提高运行效率。默认true。设置为false则使用 lua hook 调试",
"default": true
},
"packagePath": {
"type": "array",
"description": "数组中的路径在运行时会加入package.path. 如 /Script/?.lua ",
"default": []
},
"luaPath": {
"type": "string",
"description": "lua命令的路径和文件名. 如 C:/lua5.3/lua.exe ",
"default": ""
},
"docPathReplace": {
"type": "array",
"description": "被调试文件和VSCode中加载文件路径不一致时,通过此项设置,完成路径替换。输入格式[\"被替换掉的路径\", \"新路径\"]",
"default": []
},
"autoPathMode": {
"type": "boolean",
"description": "是否使用自动路径模式",
"default": true
}
}
}
},
"initialConfigurations": [
{
"type": "lua",
"request": "launch",
"name": "LuaPanda",
"program": "",
"cwd": "${workspaceFolder}",
"luaFileExtension": "",
"connectionPort": 8818,
"stopOnEntry": true,
"useCHook": true,
"autoPathMode": true,
"logLevel": 1
},
{
"type": "lua",
"request": "launch",
"name": "LuaPanda-DebugFile",
"luaPath": "",
"packagePath": [],
"luaFileExtension": "",
"connectionPort": 8818,
"stopOnEntry": true,
"useCHook": true,
"logLevel": 1
}
]
}
]
}
}