-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: Deprecate old debug protocol #10320
Conversation
@@ -179,12 +183,13 @@ process or via URI reference to the listening debugger: | |||
* `node debug <URI>` - Connects to the process via the URI such as | |||
localhost:5858 | |||
|
|||
## V8 Inspector Integration for Node.js | |||
### V8 Inspector Integration for Node.js | |||
|
|||
**NOTE: This is an experimental feature.** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if we should remove the "experimental feature" note, especially if we're pointing people to it as an alternative to the deprecated debugger. That doesn't have to happen in this PR (although it could if there's consensus that it should happen).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was thinking about what the "least worst" option would be. It seemed also bad to remove the doc warning while the runtime still writes one ("docs say go ahead but then the runtime punishes the user with scary warnings").
P.S.: The solution could be to remove the warning in this PR, but there's #8978 already touching those parts.
@nodejs/ctc This is something we should probably decide on sooner rather than later. We may need to create an exception to our deprecation policy for the debugger situation. We may not have much of a choice (unless we want to not upgrade V8 for 18 months). |
@@ -167,6 +167,10 @@ breakpoint) | |||
|
|||
## Advanced Usage | |||
|
|||
### TCP-based protocol | |||
|
|||
> Stability: 0 - Deprecated: Use [V8 Inspector Integration][] instead. The debug protocol used by the `--debug` flag was removed from V8. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Can you wrap this at 80 characters? You should be able to use multiple >
s to continue the blockquote, the documentation generator should be able to handle that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had it on multiple lines at first but line breaks inside of >
were preserved which looked awkward in the rendered version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
45e479d
to
65c3034
Compare
Rebased, only conflict was the changed link at the very bottom. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Are there semver implications for a docs-only deprecation? I'd like to land this sooner rather than later... |
All deprecations are semver major, including docs only
…On Tue, Jan 3, 2017 at 7:31 PM Rich Trott ***@***.***> wrote:
Are there semver implications for a docs-only deprecation? I'd like to
land this sooner rather than later...
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#10320 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAa2eZc3Jctp9F3uWMdU-bW95ZsLsqdUks5rOxJ_gaJpZM4LP9Kh>
.
|
Can we and should we make an exception for this one? If I'm not mistaken, we expect the debugger to be not-working come Node.js 8, so a docs-only deprecation now would seem to be the kind thing to do for our users as opposed to having it go away with no warning. |
heh, it's not like we've approved deprecations in-major before when we had no other choice (smalloc) |
I'd rather not start getting into the habit of making exceptions for deprecations. If we want to treat docs only deprecations as anything less than semver-major, then we should establish that as policy and do all docs only deprecations as less than semver-major. |
Correct me if I'm wrong, but I think that for this case, we must make an exception to our policy. We have to choose between:
|
Consensus at CTC meeting today was that this can move forward. (This and another issue highlighted how we need to more concretely document our semver policy and @jasnell is restarting an earlier effort to do that.) Removing |
Due to changes in V8, the debug protocol will no longer work in Node.js 8.0.0. Note this in the documentation. PR-URL: nodejs#10320 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Landed in 59a61a2. @jkrems Do we need to runtime deprecate the debug protocol too? Or are we thinking that there's a chance it can be an alias for |
Do we need to deprecate |
I'm not sure. It's using the |
vm.runInDebugContext uses the debug context. That is mostly unrelated to the legacy JSON protocol (which will be removed by V8 5.8). We will deprecate debug cont wi the API to access the debug context will be marked accordingly in include/v8.h, but not in the short term. |
This doesn't land cleanly on v7.x. Someone want to backport? |
@evanlucas Backport = cherry-pick commit against 7.x, resolve conflicts, PR against 7.x branch? If so I could give it a shot. |
Yes, but Pr against v7.x-staging instead of v7.x Thanks! |
Resolved here: #11172 |
Due to changes in V8, the debug protocol will no longer work in Node.js 8.0.0. Note this in the documentation. PR-URL: nodejs#10320 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
The backport PR has been updated again. I really think we should get this into the published docs rather sooner than later, given how close we are to adding runtime deprecations (or even dropping support). |
Due to changes in V8, the debug protocol will no longer work in Node.js 8.0.0. Note this in the documentation. PR-URL: nodejs#10320 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Checklist
Affected core subsystem(s)
doc
Description of change
As discussed in #10276, we'd want to add a soft deprecation of the
--debug
flag to the docs.This just adds the deprecation to the "advanced usage" section, not to the overall page. I think we can actually keep supporting
node debug <filename>
since it doesn't leak the protocol used (as pid and url do, both of which could have been started with a different version of node).