-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Fixes #7742: src: --inspect notify contextDestroyed #7756
Conversation
Note also that the commit log should confirm to the guidelines from CONTRIBUTING.md. |
Got it. I'll change the format. On Saturday, July 16, 2016, Ben Noordhuis notifications@github.com wrote:
|
It seems the v8inspector update from blink landed today but it doesn't have the notifyContextDestroyed. Do you want me to send a patch to chromium repo ? How often do you bring changes from chromium down to nodejs ? |
We should now land change to V8Inspector (if that is still necessary) into On Wed, Jul 27, 2016 at 10:32 AM, Manoj Patel notifications@github.com
|
Okay I'll send a patch to chromium tonight. On Wed, Jul 27, 2016 at 10:38 AM, Pavel Feldman notifications@github.com
|
When node script execution finishes, inspector sends Runtime.contextDestroyed event over websocket. V8Inspector changes will be also sent to chromium repo.
Landed in chromium. @pavelfeldman, when do you expect v8 to land in nodejs next? Regards. |
Weekly sounds like a good cadence to start with; we can adjust as we go. The rolling process is actually quite simple (collaboration welcome):
|
I'm not sure If I fully understand the process. Is the pavelfeldman/v8_inspector automatically updated from chromium I know https://github.com/ChromeDevTools/devtools-frontend is a mirror of a The PR to update deps/v8_inspector is basically a diff with the chromium Regards. On Fri, Jul 29, 2016 at 9:34 AM, Ali Ijaz Sheikh notifications@github.com
|
There is no process yet, we are talking about establishing it... |
c133999
to
83c7a88
Compare
This has been open for a while and it seems V8Inspector.cpp is moved. I'll update the PR again. |
@nodejs/v8-inspector ... is this still necessary? |
Yes. But the implementation will be much easier once we have inspector
agent always created (once inspector becomes a handler for the debug
signal).
…On Tue, Feb 28, 2017 at 5:43 PM James M Snell ***@***.***> wrote:
@nodejs/v8-inspector <https://github.com/orgs/nodejs/teams/v8-inspector>
... is this still necessary?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#7756 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AARkraDOrHbvy2pqk6E-iGWVzk9eD55Sks5rhM1LgaJpZM4JNz9x>
.
|
I had a working implementation once. But we were waiting for v8 changes to
land in node. By the time they landed underlying API had changed. At that
time inspect was still considered unstable so this was put on hold.
But as Eugene points out, it's not an easy fix.
On Tue, Feb 28, 2017 at 5:53 PM Eugene Ostroukhov <notifications@github.com>
wrote:
… Yes. But the implementation will be much easier once we have inspector
agent always created (once inspector becomes a handler for the debug
signal).
On Tue, Feb 28, 2017 at 5:43 PM James M Snell ***@***.***>
wrote:
> @nodejs/v8-inspector <https://github.com/orgs/nodejs/teams/v8-inspector>
> ... is this still necessary?
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#7756 (comment)>, or
mute
> the thread
> <
https://github.com/notifications/unsubscribe-auth/AARkraDOrHbvy2pqk6E-iGWVzk9eD55Sks5rhM1LgaJpZM4JNz9x
>
> .
>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7756 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA-JVEy7puBHz_ThzN46mGckGBUi7OyGks5rhM9-gaJpZM4JNz9x>
.
|
Ok, will keep this open then. |
Has this landed with the recent V8_inspector upgrades? |
Not yet. Will need to be rebased/redone. |
@eugeneo any updates on this? |
Closing since @eugeneo has a newer PR that fixes this. |
PR-URL: nodejs#12814 Reimplements: nodejs#7756 Fixes: nodejs#7742 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
Checklist
make -j4 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
inspector
Description of change
When node --inspect is run, Runtime.contextDestroyed is fired before debugger goes into a wait loop.
This signals the client that it can stop any profilers if they were running and disconnect
/cc @ofrobots @pavelfeldman
I'm not familiar with v8 internals. What is the best way for V8Inspector to hold a context reference so it gets nicely garbage collected ?
I tried using a v8::Localv8::Context* but that didn't work.
…