Commit b906c39
committed
feat: support RUBY_DEBUG env vars for host and port
Consume `RUBY_DEBUG_HOST`
and `RUBY_DEBUG_PORT` env variables
for launching a debugging session
but preserve original connection details
if env vars are not specified.
This allows the following Rdbg configuration:
```json
{
"label": "Debug Rails server",
"adapter": "rdbg",
"request": "launch",
"command": "$ZED_WORKTREE_ROOT/bin/rails",
"args": ["server"],
"cwd": "$ZED_WORKTREE_ROOT",
"env": {
"RUBY_DEBUG_OPEN": "true",
"RUBY_DEBUG_PORT": "38698"
}
}
```1 parent 14a913e commit b906c39
1 file changed
+24
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
| 166 | + | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
177 | 194 | | |
178 | 195 | | |
179 | 196 | | |
| |||
187 | 204 | | |
188 | 205 | | |
189 | 206 | | |
| 207 | + | |
190 | 208 | | |
191 | 209 | | |
192 | 210 | | |
| |||
0 commit comments