Skip to content

Commit 2c3ee9a

Browse files
committed
doc: add meeting minutes 2017-03-23
PR-URL: #93
1 parent e851671 commit 2c3ee9a

File tree

1 file changed

+172
-0
lines changed

1 file changed

+172
-0
lines changed

wg-meetings/2017-03-23.md

Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
# Diag WG Meeting - March 2017
2+
3+
* Date: 2017-03-23
4+
* Issue: <https://github.com/nodejs/diagnostics/issues/89>
5+
* Recording: <https://www.youtube.com/watch?v=_-9ygz6yOBo>
6+
* Minutes: <https://docs.google.com/document/d/1lhy1H37hsbjKljY0XYr5tt2nO5Xbo54Vf_PjBuIjvOA>
7+
* Previous meeting: <https://docs.google.com/document/d/1Rt6yFAgCSmBFYpWDd9JL90f8BWG-AhhiJ7gOluRo-XQ>
8+
9+
---
10+
11+
## Attendees
12+
13+
* Thomas Watson @watson
14+
* Richard Lau @richardlau
15+
* Zbyszek Tenerowicz @naugtur
16+
* Jan Krems @jkrems
17+
* Matt Loring @matthewloring
18+
* Ali Sheikh @ofrobots
19+
* Eugene Ostroukhov @eugeneo
20+
* Josh Gavant @joshgav
21+
22+
---
23+
24+
## Today’s Agenda
25+
26+
* inspector: make `debug` an alias for `inspect` [node#11441](https://github.com/nodejs/node/pull/11441)
27+
* Switch the CLI debugger to V8 inspector [node#11421](https://github.com/nodejs/node/issues/11421)
28+
* \[WIP\] inspector: hint text update [node#11207](https://github.com/nodejs/node/pull/11207)
29+
* debug: activate inspector with \_debugProcess [node#11431](https://github.com/nodejs/node/issues/11431)
30+
* What will Domain be replaced with? [node#10843](https://github.com/nodejs/node/issues/10843)
31+
32+
* \[trace\] tracking issue [diagnostics#84](https://github.com/nodejs/diagnostics/issues/84)
33+
* \[async_hooks\] tracking issue [diagnostics#29](https://github.com/nodejs/diagnostics/issues/29)
34+
35+
36+
## Previous Meeting Review
37+
38+
* proposal: programmatically expose the V8 inspector URL [node#11496](https://github.com/nodejs/node/issues/11496)
39+
* inspector: make `debug` an alias for `inspect` [node#11441](https://github.com/nodejs/node/pull/11441)
40+
* Switch the CLI debugger to V8 inspector [node#11421](https://github.com/nodejs/node/issues/11421)
41+
* \[WIP\] inspector: hint text update [node#11207](https://github.com/nodejs/node/pull/11207)
42+
* What will Domain be replaced with? [node#10843](https://github.com/nodejs/node/issues/10843)
43+
* src: separate trace_event_common from trace_event [node#10628](https://github.com/nodejs/node/pull/10628)
44+
* async_hooks initial implementation [node#8531](https://github.com/nodejs/node/pull/8531)
45+
46+
* wg: nominating jkrems [diagnostics#87](https://github.com/nodejs/diagnostics/pull/87)
47+
* Request to join Diagnostics WG [diagnostics#86](https://github.com/nodejs/diagnostics/pull/86)
48+
* \[trace\] tracking issue; out of experimental [diagnostics#84](https://github.com/nodejs/diagnostics/issues/84)
49+
* [async_hooks] tracking issue [diagnostics#29](https://github.com/nodejs/diagnostics/issues/29)
50+
51+
* guides: debugging getting started guide [nodejs.org#1131](https://github.com/nodejs/nodejs.org/pull/1131)
52+
* blog: diag wg update and --debug deprecation [nodejs.org#1156](https://github.com/nodejs/nodejs.org/pull/1156)
53+
54+
---
55+
56+
## Minutes
57+
58+
### inspector: make `debug` an alias for `inspect` [node#11441](https://github.com/nodejs/node/pull/11441)
59+
60+
* Switch the CLI debugger to V8 inspector [node#11421](https://github.com/nodejs/node/issues/11421)
61+
* debug: activate inspector with \_debugProcess
62+
[node#11431](https://github.com/nodejs/node/pull/11431)
63+
64+
To discuss:
65+
66+
1. Alias `node debug script.js` to `node inspect script.js`.
67+
2. Alias `--debug` to `--inspect`.
68+
3. Deprecate `vm.runInDebugContext` API.
69+
4. Switch SIGUSR1 to activate Inspector.
70+
71+
Need to decide what to change now before 8.0.0.
72+
73+
#### 1. Alias `node debug script.js` to `node inspect script.js`.
74+
75+
Conclusion: We should alias `node debug` to `node inspect` and include a deprecation warning.
76+
77+
#### 2. Alias `--debug` to `--inspect`.
78+
79+
@joshgav: Does this depend on Node@8 including V8 5.7 or 5.8?
80+
81+
@jkrems: Even if Node@8 starts with V8 5.7 we should alias `--debug` to `--inspect`. That way we won’t have to support the old interface through the lifetime of Node@8.
82+
83+
@joshgav: Are we concerned about breaking ecosystem? Concerns about node-inspector?
84+
85+
@ofrobots: People have moved on to other tools.
86+
87+
@joshgav: Any reason to not alias `--debug` and instead remove entirely?
88+
89+
@jkrems: If end goal is to encourage `--inspect` might be best to just completely remove, reduce confusion. But might be unexpected to current users.
90+
91+
@ofrobots: Best to keep it around as an alias for a little while.
92+
93+
@joshgav: Propose a) making it an alias to `--inspect`, b) with a runtime deprecation warning, and c) plan to remove it in a later version entirely.
94+
95+
@jkrems: Any objections? A: No.
96+
97+
#### 3. Deprecate `vm.runInDebugContext` API.
98+
99+
`vm.runInDebugContext` will go away at end of 2017, so we should deprecate now in preparation for Node 10 (April 2018).
100+
101+
@ofrobots: Are there other use cases for this? Most common use case is `var debug = vm.runInDebugContext(‘Debug’)` to access debugging methods.
102+
103+
@joshgav: open a PR for the deprecation and see what turns up?
104+
105+
#### 4. Switch SIGUSR1 to activate Inspector.
106+
107+
Based on above, this needs to land in 8.0.0. Need reviews of [node#11431](https://github.com/nodejs/node/pull/11431).
108+
109+
**Next steps**
110+
111+
* @ofrobots to update [#11441](https://github.com/nodejs/node/pull/11441) to alias `--debug` to `--inspect` and `node debug` to `node inspect`, to land in 8.0.0.
112+
* @joshgav to submit PR to deprecate `vm.runInDebugContext`.
113+
* Please review [node#11431](https://github.com/nodejs/node/pull/11431) - switch SIGUSR1.
114+
115+
---
116+
117+
### \[WIP\] inspector: hint text update [#11207](https://github.com/nodejs/node/pull/11207)
118+
119+
@joshgav: Suggestion:
120+
121+
```
122+
Debugger listening at ws://127.0.0.1:port/uuid
123+
For more info go to https://nodejs.org/en/docs/guides/debugging-getting-started
124+
```
125+
126+
@jkrems: Prefer just port as previously with --debug. Tools know how to handle changing UUIDs, so better not to surface UUID, would be confusing.
127+
128+
@joshgav: IP address can be important, for example when attaching to process in a Docker container, which doesn’t necessarily allow access to localhost. Also UUIDs are needed for lower-level tool users.
129+
130+
What about the `chrome-devtools` URL (e.g. `chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9229/e027329e-7b98-4b7d-85f0-184a0ea24b74`)? Should that continue to be included?
131+
132+
@joshgav: Could Chrome DevTools accept the short `ws` URL and interpolate into the full `chrome-devtools` URL? That would also solve some of the feedback about the URL being too long to copy out of the terminal.
133+
134+
@ofrobots: May be security issues, `chrome-devtools` scheme has special rights.
135+
136+
@jkrems: Possible to add different IPs and ports in chrome://inspect now, but would need to reconfigure for all available combinations.
137+
138+
@joshgav: Are there strong opinions that we should keep the chrome-devtools URL?
139+
140+
**Next steps**
141+
142+
* @joshgav to open PR with suggestion above and continue discussion there.
143+
144+
---
145+
146+
### What will Domain be replaced with? [#10843](https://github.com/nodejs/node/issues/10843)
147+
148+
Remove from diag-agenda, perhaps close the issue.
149+
150+
---
151+
152+
### \[trace\] tracking issue [#84](https://github.com/nodejs/diagnostics/issues/84)
153+
154+
@matthewloring: Macros we added from V8 fell out of date with V8 so they don’t work. Will update them shortly, and would be good to also add an actual use and test case to core to know if they fall out of date.
155+
156+
Propose 2 PRs:
157+
1. Update macros to get back in sync with V8.
158+
2. Add a couple actual instrumentation points in core.
159+
160+
No objections.
161+
162+
---
163+
164+
### \[async_hooks\] tracking issue [#29](https://github.com/nodejs/diagnostics/issues/29)
165+
166+
New PR: https://github.com/nodejs/node/pull/11883.
167+
168+
---
169+
170+
## Q&A
171+
172+
Schedule? Okay to follow the last TSC meeting each month? No objections.

0 commit comments

Comments
 (0)