forked from ruby/vscode-rdbg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
182 lines (182 loc) · 4.35 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
{
"name": "vscode-rdbg",
"displayName": "VSCode rdbg Ruby Debugger",
"description": "Ruby's rdbg debugger support for VSCode",
"publisher": "KoichiSasada",
"version": "0.0.7",
"license": "MIT",
"author": {
"name": "Koichi Sasada",
"email": "[email protected]",
"url": "https://www.atdot.net/~ko1/"
},
"homepage": "https://github.com/ruby/vscode-rdbg",
"repository": {
"type": "git",
"url": "https://github.com/ruby/vscode-rdbg.git"
},
"bugs": {
"url": "https://github.com/ruby/vscode-rdbg/issues"
},
"categories": [
"Debuggers"
],
"keywords": [
"debug",
"debugging",
"debugger",
"ruby",
"rdbg"
],
"engines": {
"vscode": "^1.49.0"
},
"activationEvents": [
"onLanguage:ruby",
"onDebug"
],
"main": "./out/extension.js",
"contributes": {
"breakpoints": [
{
"language": "ruby"
}
],
"debuggers": [
{
"type": "rdbg",
"label": "Ruby (rdbg)",
"languages": [
"ruby"
],
"configurationAttributes": {
"attach": {
"properties": {
"rdbgPath": {
"type": "string",
"description": "Location of the rdbg executable"
},
"showProtocolLog": {
"type": "boolean",
"description": "Show a log of DAP requests, events, and responses",
"default": false
}
}
},
"launch": {
"required": [
"script"
],
"properties": {
"command": {
"type": "string",
"description": "Command name (ruby, rake, bin/rails, bundle exec ruby, etc)",
"default": "ruby"
},
"script": {
"type": "string",
"description": "Absolute path to a Ruby file.",
"default": "${workspaceFolder}/${command:AskForProgramName}"
},
"cwd": {
"type": "string",
"description": "Directory to execute the program in",
"default": "${workspaceFolder}"
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program.",
"items": {
"type": "string"
},
"default": []
},
"env": {
"type": "object",
"description": "Additional environment variables to pass to the debugging (and debugged) process.",
"default": {}
},
"showProtocolLog": {
"type": "boolean",
"description": "Show a log of DAP requests, events, and responses",
"default": false
},
"useBundler": {
"type": "boolean",
"description": "Execute Ruby programs with `bundle exec` instead of directly",
"default": false
},
"bundlePath": {
"type": "string",
"description": "Location of the bundle executable"
},
"rdbgPath": {
"type": "string",
"description": "Location of the rdbg executable"
},
"askParameters": {
"type": "boolean",
"description": "Ask parameters at first."
}
}
}
},
"configurationSnippets": [
{
"label": "Ruby: launch current file with rdbg",
"description": "A new configuration to launch a current file with rdbg",
"body": {
"type": "rdbg",
"name": "Debug current file",
"request": "launch",
"script": "${file}",
"askParameters": true
}
},
{
"label": "Ruby: attach process with rdbg",
"description": "A new configuration to attach Ruby process with rdbg",
"body": {
"type": "rdbg",
"name": "Attach rdbg",
"request": "attach"
}
}
]
}
],
"configuration": {
"title": "Ruby rdbg debugger",
"properties": {
"rdbg.useBundler": {
"type": "boolean",
"default": true,
"description": "Run `bundle exec` if Gemfile is available."
},
"rdbg.saveBreakpoints": {
"type": "boolean",
"default": false,
"description": "(experimental) Save breakpoints information to '.rdbg.breakpoints' for rdbg command"
}
}
}
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"watch": "tsc -watch -p ./"
},
"devDependencies": {
"@types/node": "^12.11.7",
"@types/vscode": "^1.49.0",
"@typescript-eslint/eslint-plugin": "^4.1.1",
"@typescript-eslint/parser": "^4.1.1",
"eslint": "^7.9.0",
"typescript": "^4.0.2",
"vscode-test": "^1.4.0"
},
"dependencies": {
"yarn": "^1.22.10"
}
}