Commit c58a0d0
Add option enable_multi_node to edb:reverse_attach()
Summary:
# Context
As part of multi-node debugging support, we need to issue a startDebugging reverse-request for each new node that attempts to attach.
# Problem
We need to make this an optional part of reverse attaching, since we want the experience of debugging and reverse attaching onto one node to remain the same.
# This diff
Adds `multi_node_enabled` and `add_flags_necessary` as `boolean()` options to `edb:reverse_attach/1`. The `node_attached` event is now only sent when `multi_node_enabled` is set to `true`. It is by default `false`. `add_flags_necessary` is true by default and specifies if the user requires edb to setup ERL_AFLAGS to inject reverse attach code, or if they have already done so.
Reviewed By: jcpetruzza
Differential Revision: D80168956
fbshipit-source-id: 003f868f9ddb1f38d89cf5a6414aa919bd2a38101 parent 4a4610f commit c58a0d0
3 files changed
Lines changed: 228 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
274 | 284 | | |
275 | 285 | | |
276 | 286 | | |
277 | 287 | | |
278 | 288 | | |
279 | | - | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
280 | 292 | | |
281 | 293 | | |
282 | 294 | | |
283 | | - | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
284 | 301 | | |
285 | 302 | | |
286 | 303 | | |
| |||
289 | 306 | | |
290 | 307 | | |
291 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
292 | 317 | | |
293 | | - | |
| 318 | + | |
294 | 319 | | |
295 | 320 | | |
296 | 321 | | |
297 | 322 | | |
298 | 323 | | |
299 | 324 | | |
300 | 325 | | |
301 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
302 | 337 | | |
303 | 338 | | |
304 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
305 | 346 | | |
306 | 347 | | |
307 | 348 | | |
| |||
865 | 906 | | |
866 | 907 | | |
867 | 908 | | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
868 | 913 | | |
869 | 914 | | |
870 | 915 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | | - | |
145 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
146 | 151 | | |
147 | | - | |
| 152 | + | |
148 | 153 | | |
149 | | - | |
| 154 | + | |
150 | 155 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 156 | + | |
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
| |||
393 | 395 | | |
394 | 396 | | |
395 | 397 | | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | 398 | | |
402 | 399 | | |
403 | 400 | | |
404 | 401 | | |
405 | 402 | | |
406 | | - | |
| 403 | + | |
407 | 404 | | |
408 | 405 | | |
409 | 406 | | |
| |||
0 commit comments