GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — debug: activate inspector with _debugProcess by eugeneo · Pull Request #11431 · nodejs/node

Conversation

@eugeneo

@eugeneo eugeneo commented Feb 16, 2017

Copy link
Copy Markdown
Contributor

This pull request switches the signal handler to start inspector socket
server instead of the legacy V8 debug protocol.

Fixes: #8464

CC: @ofrobots

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. c++ Issues and PRs that require attention from people who are familiar with C++. dont-land-on-v4.x inspector Issues and PRs related to the V8 inspector protocol. labels Feb 16, 2017
@eugeneo

eugeneo commented Feb 16, 2017

Copy link
Copy Markdown
Contributor Author

Ref: nodejs/diagnostics#67

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo

eugeneo commented Feb 17, 2017

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/6457/

ARM failures are parallel/test-dgram-address that does not seem to be influenced by this change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots

ofrobots commented Feb 17, 2017

Copy link
Copy Markdown
Contributor

/cc @nodejs/diagnostics @jkrems

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots ofrobots added the semver-major PRs that contain breaking changes and should be released in the next major version. label Feb 17, 2017
@hybrist hybrist mentioned this pull request Feb 17, 2017
Switch the CLI debugger to V8 inspector #11421
Closed
14 tasks done
@ofrobots ofrobots mentioned this pull request Feb 17, 2017
inspector: make debug an alias for inspect #11441
Merged
addaleax
addaleax reviewed Feb 21, 2017
View reviewed changes

@addaleax addaleax left a comment

Copy link
Copy Markdown
Member

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.

Left a few comments … the size of the diff makes it quite difficult to tell code that was just moved around from actual changes, by the way. I don’t know if splitting into several commits would have been a possibility here, but that would make reviewing a lot easier…

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@addaleax addaleax Feb 21, 2017

Copy link
Copy Markdown
Member

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.

Could you use a TwoByteValue for the above couple of lines?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Feb 21, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done. Thanks!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@addaleax addaleax Feb 21, 2017

Copy link
Copy Markdown
Member

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.

Why not just value.IsEmpty() || !value->IsString()?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Feb 21, 2017

Copy link
Copy Markdown
Contributor Author

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 switched to TwoByteValue and removed this check.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.h Outdated

@addaleax addaleax Feb 21, 2017

Copy link
Copy Markdown
Member

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.

Is there any reason why this can’t be const v8_inspector::StringView&?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Feb 21, 2017

Copy link
Copy Markdown
Contributor Author

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.

Fixed

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.h Outdated

@addaleax addaleax Feb 21, 2017

Copy link
Copy Markdown
Member

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.

(ditto for const v8_inspector::StringView&)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Feb 21, 2017

Copy link
Copy Markdown
Contributor Author

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.

Fixed

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@addaleax addaleax Feb 21, 2017

Copy link
Copy Markdown
Member

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: I’m tempted to say this might better be called TransportAndIo. 😄

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Feb 21, 2017

Copy link
Copy Markdown
Contributor Author

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.

Right... :) Thanks, I fixed it!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@eugeneo

eugeneo commented Feb 21, 2017

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/6527/

I do not see ARM failures through the Hudson - I think GitHub integration might be glitchy.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo eugeneo mentioned this pull request Feb 28, 2017
Breakpoints can't be set by a debugger (Chrome or VS Code) while the Node program is running #11589
Closed
@ofrobots ofrobots added this to the 8.0.0 milestone Mar 9, 2017
@ofrobots ofrobots mentioned this pull request Mar 9, 2017
Move V8 inspector to stable #11770
Closed
@hybrist hybrist mentioned this pull request Mar 16, 2017
Support for debugging a pid nodejs/node-inspect#37
Merged
@hybrist

hybrist commented Mar 16, 2017

Copy link
Copy Markdown
Contributor

Tried this change against node-inspect and it worked as expected.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots ofrobots mentioned this pull request Mar 16, 2017
Find an alternative to V8's Debug Mirror API for util.inspect #11875
Closed
@TimothyGu TimothyGu added dont-land-on-v6.x labels Mar 16, 2017
@hybrist hybrist mentioned this pull request Mar 22, 2017
Can't put running Node process into debug mode microsoft/vscode-node-debug2#15
Closed
@jasnell

jasnell commented Mar 22, 2017

Copy link
Copy Markdown
Member

What's the status on this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo

eugeneo commented Mar 22, 2017

Copy link
Copy Markdown
Contributor Author

@jasnell I am not sure. Code-wise it is ready for the review. A decision needs to be made when the old debugger stops handling the signal - is this something that needs to be discussed by @nodejs/diagnostics?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hybrist

hybrist commented Mar 22, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@joshgav Can we pull this into tomorrow's meeting? I think it boils down to a unified "master plan" for doing the switch and when to land what and where.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joshgav joshgav added the diag-agenda Issues and PRs to discuss during Diagnostics Working Group meetings. label Mar 22, 2017
@joshgav

joshgav commented Mar 22, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

@jkrems sure, just added label.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo

eugeneo commented Mar 22, 2017

Copy link
Copy Markdown
Contributor Author

@jkrems, @joshgav - how can I join the meeting? I tried looking through the https://github.com/nodejs/diagnostics but did not find details about the upcoming meeting.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hybrist

hybrist commented Mar 22, 2017

Copy link
Copy Markdown
Contributor

@eugeneo This is the meta issue for the meeting: nodejs/diagnostics#89

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@joshgav joshgav mentioned this pull request Mar 23, 2017
Diag WG Meeting - 2017-03 nodejs/diagnostics#89
Closed
@ofrobots ofrobots mentioned this pull request Mar 24, 2017
doc: add meeting minutes 2017-03-23 nodejs/diagnostics#93
Closed
bnoordhuis
bnoordhuis requested changes Mar 29, 2017
View reviewed changes

@bnoordhuis bnoordhuis left a comment

Copy link
Copy Markdown
Member

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.

Mea culpa, looks like I reviewed this back in February but forgot to submit the comments. Re-reviewed; needs a rebase but the conflicts look minor.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Can you line up the arguments?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Can you write this as CHECK_NE(channel, nullptr)?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Likewise but with CHECK_EQ. I'll stop pointing it out.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Prefer channel_ == nullptr over bool coercion.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Likewise. I'll stop pointing it out.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Can you explain why you sometimes CHECK(impl->client()) and sometimes not?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Unused macro?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Removed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

static_cast?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Can you CHECK_EQ(0, uv_loop_close(&loop))? I'm pretty sure this won't work on account of the closing handle.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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 changed the code to spin until the callback is called.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/node_debug_options.cc Outdated

@bnoordhuis bnoordhuis Mar 29, 2017

Copy link
Copy Markdown
Member

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.

Can you make this an if statement for legibility? You could also simplify it to this:

if (port < 0) {
  port = default_debugger_port;
#if HAVE_INSPECTOR
  if (inspector_enabled_)
    port = default_inspector_port;
#endif  // HAVE_INSPECTOR
}

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@eugeneo

eugeneo commented Mar 29, 2017

Copy link
Copy Markdown
Contributor Author

Thank you for the review. Please take another look.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo

eugeneo commented Mar 31, 2017

Copy link
Copy Markdown
Contributor Author

I did a rebase to account for the latest changes. Please review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@MylesBorins MylesBorins mentioned this pull request Apr 3, 2017
Remove Legacy Debugger for 8.0.0 nodejs/CTC#94
Closed
@hybrist

hybrist commented Apr 3, 2017

Copy link
Copy Markdown
Contributor

Looks like there's one stray lint error:

src/inspector_io.h:119:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hybrist hybrist mentioned this pull request Apr 3, 2017
src: Remove support for --debug #12197
Closed
4 tasks done
@eugeneo

eugeneo commented Apr 3, 2017

Copy link
Copy Markdown
Contributor Author

@jkrems thanks for pointing that out, I fixed it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo

eugeneo commented Apr 3, 2017

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-commit/8860/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis
bnoordhuis approved these changes Apr 4, 2017
View reviewed changes

@bnoordhuis bnoordhuis left a comment

Copy link
Copy Markdown
Member

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 sans some final comments. Have you checked if ./configure --without-inspector still builds?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

Out of curiosity, what is the purpose of this destructor?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Removed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

Four space indent.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

You could use FIXED_ONE_BYTE_STRING here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done, did search/replace for all invocations

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

Is there a point to creating the TryCatch when it just rethrows the exception?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Removed.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_agent.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

You could use FIXED_ONE_BYTE_STRING here.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

platform_ != nullptr?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

Not wrong but you could also io_thread_req_() in the initializer list.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

CHECK_EQ

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/inspector_io.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

CHECK_NE

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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.

Done

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/node.cc Outdated

@bnoordhuis bnoordhuis Apr 4, 2017

Copy link
Copy Markdown
Member

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.

The change suggests it's not just about the compiler?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@eugeneo eugeneo Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

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 removed outdated comment.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@hybrist hybrist mentioned this pull request Apr 4, 2017
[WIP] deps: Update node-inspect to v1.11.0 #12214
Closed
3 tasks done
@eugeneo

eugeneo commented Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

@bnoordhuis I moved the _debugProcess code back to node.cc so the node built with --without-inspector would still be able to send signal/do the weird Windows stuff to another Node instance. What do you think?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bnoordhuis

bnoordhuis commented Apr 4, 2017

Copy link
Copy Markdown
Member

@eugeneo Did you forget to push? I still see RegisterDebugSignalHandler() and friends in inspector_agent.cc, not node.cc.

(Happy to hear I'm not the only one who thinks the Windows code is weird. I'm not even sure why it works.)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo

eugeneo commented Apr 4, 2017

Copy link
Copy Markdown
Contributor Author

Signal handler remains there, it is only the code that sends the signal that was moved back. (I see CI failures, looking into them)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@eugeneo

eugeneo commented Apr 5, 2017

Copy link
Copy Markdown
Contributor Author

CI is passing: https://ci.nodejs.org/job/node-test-pull-request/7217/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bnoordhuis
bnoordhuis approved these changes Apr 5, 2017
View reviewed changes
@eugeneo

eugeneo commented Apr 5, 2017

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/7219/ - OS X is passing, even though its status is not properly reported.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots ofrobots mentioned this pull request Apr 5, 2017
doc: deprecate vm.runInDebugContext #12243
Closed
4 tasks done
@eugeneo eugeneo closed this Apr 6, 2017
@eugeneo
eugeneo deleted the inspector-signal branch April 6, 2017 16:12
@eugeneo
eugeneo merged commit 7599b0e into nodejs:master Apr 6, 2017
@eugeneo

eugeneo commented Apr 6, 2017

Copy link
Copy Markdown
Contributor Author

Landed as 7599b0e

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hybrist hybrist mentioned this pull request Apr 12, 2017
deps: update node-inspect to v1.11.2 #12363
Closed
4 tasks done
@refack refack mentioned this pull request Apr 23, 2017
regression: 3rd party debuggers are incompatible with node8 nighlies #12364
Closed
@addaleax addaleax removed the diag-agenda Issues and PRs to discuss during Diagnostics Working Group meetings. label May 10, 2017
@jasnell jasnell mentioned this pull request May 11, 2017
8.0.0 Release Proposal #12220
Closed
@refack refack mentioned this pull request Jun 11, 2017
refactor test/inspector #13622
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@addaleax addaleax addaleax left review comments
@bnoordhuis bnoordhuis bnoordhuis approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. c++ Issues and PRs that require attention from people who are familiar with C++. inspector Issues and PRs related to the V8 inspector protocol. semver-major PRs that contain breaking changes and should be released in the next major version.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@eugeneo @ofrobots @hybrist @jasnell @joshgav @bnoordhuis @addaleax @TimothyGu @nodejs-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.