Commit 4891001
debugger: make listen address configurable
`--debug=1.2.3.4:5678` and `--debug=example.com:5678` are now accepted,
likewise the `--debug-brk` and `--debug-port` switch. The latter is
now something of a misnomer but it's undocumented and for internal use
only so it shouldn't matter too much.
`--inspect=1.2.3.4:5678` and `--inspect=example.com:5678` are also
accepted but don't use the host name yet; they still bind to the
default address.
Fixes: #3306
PR-URL: #3316
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>1 parent 1bd6a62 commit 4891001Copy full SHA for 4891001
File tree
Expand file treeCollapse file tree
10 files changed
+128
-48
lines changedOpen diff view settings
Filter options
- lib
- src
- test
- parallel
- sequential
Expand file treeCollapse file tree
10 files changed
+128
-48
lines changedOpen diff view settings
Collapse file
+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
18 | 18 | |
19 | 19 | |
20 | 20 | |
21 | | - |
22 | | - |
23 | | - |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
24 | 25 | |
25 | 26 | |
26 | 27 | |
|
Collapse file
+7-1Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
44 | 44 | |
45 | 45 | |
46 | 46 | |
| 47 | + |
47 | 48 | |
48 | 49 | |
49 | 50 | |
| ||
69 | 70 | |
70 | 71 | |
71 | 72 | |
72 | | - |
| 73 | + |
73 | 74 | |
74 | 75 | |
75 | 76 | |
| ||
85 | 86 | |
86 | 87 | |
87 | 88 | |
| 89 | + |
88 | 90 | |
89 | 91 | |
90 | 92 | |
| ||
213 | 215 | |
214 | 216 | |
215 | 217 | |
| 218 | + |
| 219 | + |
| 220 | + |
| 221 | + |
216 | 222 | |
217 | 223 | |
218 | 224 | |
|
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
35 | 36 | |
36 | 37 | |
37 | 38 | |
| ||
75 | 76 | |
76 | 77 | |
77 | 78 | |
78 | | - |
| 79 | + |
79 | 80 | |
80 | 81 | |
81 | 82 | |
| ||
114 | 115 | |
115 | 116 | |
116 | 117 | |
| 118 | + |
117 | 119 | |
118 | 120 | |
119 | 121 | |
|
Collapse file
+54-28Lines changed: 54 additions & 28 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
58 | 58 | |
59 | 59 | |
60 | 60 | |
| 61 | + |
| 62 | + |
61 | 63 | |
62 | 64 | |
63 | 65 | |
| ||
141 | 143 | |
142 | 144 | |
143 | 145 | |
| 146 | + |
| 147 | + |
144 | 148 | |
145 | 149 | |
146 | 150 | |
| 151 | + |
147 | 152 | |
| 153 | + |
148 | 154 | |
149 | 155 | |
150 | 156 | |
| ||
203 | 209 | |
204 | 210 | |
205 | 211 | |
206 | | - |
207 | 212 | |
| 213 | + |
208 | 214 | |
209 | | - |
210 | 215 | |
| 216 | + |
211 | 217 | |
212 | 218 | |
213 | 219 | |
214 | 220 | |
215 | 221 | |
216 | 222 | |
217 | | - |
218 | 223 | |
219 | 224 | |
220 | 225 | |
221 | | - |
222 | | - |
223 | 226 | |
224 | 227 | |
225 | 228 | |
| ||
3514 | 3517 | |
3515 | 3518 | |
3516 | 3519 | |
| 3520 | + |
3517 | 3521 | |
3518 | 3522 | |
3519 | 3523 | |
| ||
3535 | 3539 | |
3536 | 3540 | |
3537 | 3541 | |
3538 | | - |
3539 | | - |
3540 | | - |
3541 | | - |
3542 | | - |
3543 | | - |
3544 | | - |
3545 | | - |
3546 | | - |
3547 | | - |
3548 | | - |
3549 | | - |
3550 | | - |
3551 | | - |
| 3542 | + |
| 3543 | + |
| 3544 | + |
| 3545 | + |
| 3546 | + |
| 3547 | + |
| 3548 | + |
| 3549 | + |
| 3550 | + |
| 3551 | + |
| 3552 | + |
| 3553 | + |
| 3554 | + |
| 3555 | + |
| 3556 | + |
| 3557 | + |
| 3558 | + |
| 3559 | + |
| 3560 | + |
| 3561 | + |
| 3562 | + |
| 3563 | + |
| 3564 | + |
| 3565 | + |
| 3566 | + |
3552 | 3567 | |
3553 | | - |
| 3568 | + |
| 3569 | + |
| 3570 | + |
| 3571 | + |
| 3572 | + |
| 3573 | + |
| 3574 | + |
| 3575 | + |
| 3576 | + |
| 3577 | + |
| 3578 | + |
| 3579 | + |
| 3580 | + |
3554 | 3581 | |
3555 | 3582 | |
| 3583 | + |
| 3584 | + |
3556 | 3585 | |
3557 | 3586 | |
3558 | 3587 | |
| ||
3810 | 3839 | |
3811 | 3840 | |
3812 | 3841 | |
3813 | | - |
3814 | 3842 | |
3815 | 3843 | |
3816 | 3844 | |
3817 | 3845 | |
3818 | | - |
3819 | 3846 | |
3820 | 3847 | |
3821 | | - |
| 3848 | + |
| 3849 | + |
3822 | 3850 | |
3823 | | - |
| 3851 | + |
| 3852 | + |
3824 | 3853 | |
3825 | 3854 | |
3826 | 3855 | |
3827 | | - |
3828 | 3856 | |
3829 | | - |
3830 | 3857 | |
3831 | 3858 | |
3832 | 3859 | |
3833 | 3860 | |
3834 | 3861 | |
3835 | 3862 | |
3836 | | - |
| 3863 | + |
3837 | 3864 | |
3838 | 3865 | |
3839 | 3866 | |
3840 | | - |
3841 | 3867 | |
3842 | 3868 | |
3843 | 3869 | |
|
Collapse file
test/parallel/test-cluster-disconnect-handles.js
Copy file name to clipboardExpand all lines: test/parallel/test-cluster-disconnect-handles.js+2-5Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
25 | 25 | |
26 | 26 | |
27 | 27 | |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
| 28 | + |
| 29 | + |
33 | 30 | |
34 | 31 | |
35 | 32 | |
|
Collapse file
test/parallel/test-debug-port-cluster.js
Copy file name to clipboardExpand all lines: test/parallel/test-debug-port-cluster.js+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
16 | 16 | |
17 | 17 | |
18 | 18 | |
19 | | - |
| 19 | + |
| 20 | + |
20 | 21 | |
21 | 22 | |
22 | 23 | |
|
Collapse file
test/parallel/test-debug-port-from-cmdline.js
Copy file name to clipboardExpand all lines: test/parallel/test-debug-port-from-cmdline.js+2-3Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | | - |
48 | | - |
| 47 | + |
49 | 48 | |
Collapse file
test/parallel/test-debug-port-numbers.js
Copy file name to clipboardExpand all lines: test/parallel/test-debug-port-numbers.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
52 | 52 | |
53 | 53 | |
54 | 54 | |
55 | | - |
56 | | - |
| 55 | + |
| 56 | + |
| 57 | + |
57 | 58 | |
58 | 59 | |
59 | 60 | |
|
Collapse file
test/parallel/test-debug-signal-cluster.js
Copy file name to clipboardExpand all lines: test/parallel/test-debug-signal-cluster.js+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
63 | 63 | |
64 | 64 | |
65 | 65 | |
66 | | - |
| 66 | + |
67 | 67 | |
68 | | - |
| 68 | + |
69 | 69 | |
70 | | - |
| 70 | + |
71 | 71 | |
72 | 72 | |
73 | 73 | |
| ||
79 | 79 | |
80 | 80 | |
81 | 81 | |
82 | | - |
| 82 | + |
83 | 83 | |
Collapse file
test/sequential/test-debug-host-port.js
Copy file name to clipboard+47Lines changed: 47 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 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 | + |
0 commit comments