Commit d937b31
authored
feat(rdbg): support RUBY_DEBUG env vars for host and port (#123)
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"
}
}
```
<!-- GitButler Footer Boundary Top -->
---
This is **part 1 of 2 in a stack** made with GitButler:
- <kbd> 2 </kbd> #124
- <kbd> 1 </kbd> #123 👈
<!-- GitButler Footer Boundary Bottom -->1 parent a30847c commit d937b31
1 file changed
+25
-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 | + | |
| 194 | + | |
177 | 195 | | |
178 | 196 | | |
179 | 197 | | |
| |||
187 | 205 | | |
188 | 206 | | |
189 | 207 | | |
| 208 | + | |
190 | 209 | | |
191 | 210 | | |
192 | 211 | | |
| |||
0 commit comments