forked from rubyide/vscode-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
171 lines (168 loc) · 4.55 KB
/
package.json
File metadata and controls
171 lines (168 loc) · 4.55 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
{
"name": "Ruby",
"displayName": "Ruby",
"version": "0.3.4",
"publisher": "rebornix",
"description": "Provides Ruby language and debugging support for Visual Studio Code",
"author": {
"name": "Peng Lv"
},
"contributors": [{
"name": "Bryan Hoekstra",
"url": "https://github.com/HookyQR"
}],
"engines": {
"vscode": "^0.10.1"
},
"license": "MIT",
"icon": "images/ruby.png",
"categories": [
"Debuggers"
],
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/rebornix/vscode-ruby.git"
},
"bugs": {
"url": "https://github.com/rebornix/vscode-ruby/issues"
},
"dependencies": {
"vscode-debugprotocol": "~1.6.0-pre4",
"vscode-debugadapter": "~1.6.0-pre8",
"xmldom": "^0.1.19"
},
"devDependencies": {
"gulp": "^3.9.0",
"gulp-util": "^3.0.5",
"gulp-typescript": "^2.12.0",
"gulp-sourcemaps": "^1.6.0",
"run-sequence": "*",
"mocha": "^2.4.5",
"typescript": "1.8.2"
},
"scripts": {
"vscode:prepublish": "tsc -p ./src",
"compile": "tsc -p ./src",
"watch": "tsc -w -p ./src",
"test": "node ./node_modules/mocha/bin/mocha --timeout 15000 -u tdd ./out/tests/*.js"
},
"contributes": {
"debuggers": [
{
"type": "Ruby",
"label": "Ruby",
"enableBreakpointsFor": {
"languageIds": ["ruby"]
},
"program": "./out/main.js",
"runtime": "node",
"configurationAttributes": {
"launch": {
"required": ["program"],
"properties": {
"program": {
"type": "string",
"description": "Absolute path to the program.",
"default": "${workspaceRoot}/main.rb"
},
"stopOnEntry": {
"type": "boolean",
"description": "Automatically stop after launch.",
"default": true
},
"showDebuggerOutput": {
"type": "boolean",
"description": "Show output of the debugger in the console.",
"default": false
},
"args": {
"type": "array",
"description": "Command line arguments passed to the program.",
"items": {
"type": "string"
},
"default": []
},
"cwd": {
"type": "string",
"description": "Absolute path to the working directory of the program being debugged.",
"default": "${workspaceRoot}"
},
"useBundler": {
"type": "boolean",
"description": "Use `bundle exec` to run rdebug-ide. Enable this option if you have used bundle install --path with rdebug-ide as a bundled gem.",
"default": false
},
"pathToBundler": {
"type": "string",
"description": "If you use the `useBunder` option, and `bundle` is not in your path, provide the absolute path to `bundle` (eg. \"/usr/bin/bundle\" )",
"default": "bundle"
},
"pathToRDebugIDE": {
"type": "string",
"description": "If `rdebug-ide` is not in your path, provide the absolute path to `rdebug-ide` (eg. \"c:\\ruby\\rdebug-ide.bat\" )",
"default": "rdebug-ide"
}
}
},
"attach": {
"required": ["cwd", "remoteHost", "remotePort", "remoteWorkspaceRoot"],
"properties": {
"cwd": {
"type": "string",
"description": "Absolute path to the working directory of the program being debugged.",
"default": "${workspaceRoot}"
},
"remoteHost": {
"type": "string",
"description": "Host address for remote debugging.",
"default": "127.0.0.1"
},
"remotePort": {
"type": "string",
"description": "Port for remote debugging.",
"default": "1234"
},
"remoteWorkspaceRoot": {
"type": "string",
"description": "Remote workspace root, this parameter is required for remote debugging.",
"default": "${workspaceRoot}"
},
"showDebuggerOutput": {
"type": "boolean",
"description": "Show output of the debugger in the console.",
"default": false
}
}
}
},
"initialConfigurations": [
{
"name": "Debug Local File",
"type": "Ruby",
"request": "launch",
"program": "${workspaceRoot}/main.rb"
},
{
"name": "Listen for rdebug-ide",
"type": "Ruby",
"request": "attach",
"cwd": "${workspaceRoot}",
"remoteHost": "127.0.0.1",
"remotePort": "1234",
"remoteWorkspaceRoot": "${workspaceRoot}"
},
{
"name": "Rails server",
"type": "Ruby",
"request": "launch",
"cwd": "${workspaceRoot}",
"program": "${workspaceRoot}/bin/rails",
"args": ["server"]
}
]
}
]
}
}