Skip to content

Conversation

@refack
Copy link
Contributor

@refack refack commented Apr 24, 2017

--inspect-brk doesn't exist in v6, leaving no consistent
way to start node with inspector activated and breaking on first line.
Add --inspect-brk[=port] as an undocumented option to v6.x

Fixes: #12364

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

inspector, debugger

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. c++ Issues and PRs that require attention from people who are familiar with C++. debugger inspector Issues and PRs related to the V8 inspector protocol labels Apr 24, 2017
@refack refack added wip Issues and PRs that are still a work in progress. backported-to-v6.x and removed build Issues and PRs related to build files or the CI. v6.x labels Apr 24, 2017
@refack refack self-assigned this Apr 24, 2017
@refack refack changed the title inspector: backport --inspect-brk [wip] inspector: backport --inspect-brk Apr 24, 2017
@refack refack force-pushed the v6-inspector-brk branch 2 times, most recently from 979d02a to 4e8ae63 Compare April 24, 2017 03:55
@refack refack removed the wip Issues and PRs that are still a work in progress. label Apr 24, 2017
@refack refack changed the title [wip] inspector: backport --inspect-brk inspector: backport --inspect-brk Apr 24, 2017
@refack refack changed the title inspector: backport --inspect-brk inspector: implement --inspect-brk Apr 24, 2017
@refack refack changed the title inspector: implement --inspect-brk inspector: enable --inspect-brk Apr 24, 2017
@mscdex mscdex added wip Issues and PRs that are still a work in progress. v6.x and removed wip Issues and PRs that are still a work in progress. backported-to-v6.x labels Apr 24, 2017
@MylesBorins MylesBorins added the semver-minor PRs that contain new features and should be released in the next minor version. label Apr 24, 2017
@refack
Copy link
Contributor Author

refack commented Apr 24, 2017

@refack refack changed the title inspector: enable --inspect-brk inspector: enable --inspect-brk in v6 Apr 24, 2017
@refack
Copy link
Contributor Author

refack commented Apr 24, 2017

@MylesBorins why semver-minor if it's undocumented?

@refack
Copy link
Contributor Author

refack commented Apr 24, 2017

CI fails because of #12540

@gibfahn
Copy link
Member

gibfahn commented Apr 24, 2017

why semver-minor if it's undocumented?

Why not? It's a new API. We haven't clearly defined whether our semver API is the public interface or the API docs. In any case, is there a reason not to err on the side of caution and make it a semver-minor?

Also why not document it?

@refack
Copy link
Contributor Author

refack commented Apr 24, 2017

Why not? It's a new API.

Also why not document it?

Either/or, right?
Document - semver-minor
Undocumented - semver-none

Also why not document it?

Since it's a workaround for proper version detection, and it'll bring up the great big experimental warning...
But I'm ± 0 on that.

@MylesBorins
Copy link
Contributor

Needs a rebase.

Committee agreed it can go in

@Trott Trott removed the blocked PRs that are blocked by other issues or PRs. label Sep 19, 2017
@sam-github
Copy link
Contributor

It rebased clean onto v6.x-staging.

Landed in d9d34be

@MylesBorins I assume we wanted it landed, tell me if not.

@sam-github sam-github closed this Sep 20, 2017
@MylesBorins MylesBorins reopened this Sep 20, 2017
@MylesBorins
Copy link
Contributor

backed this out. Not planning to land the minors until next month when we are prepping the minor release

@sam-github
Copy link
Contributor

OK, though I fear it will just have to be rebased again. c'est la vie.

@refack
Copy link
Contributor Author

refack commented Sep 20, 2017

Rebases cleanly indeed.
https://ci.nodejs.org/job/node-test-pull-request/10168/

MylesBorins pushed a commit that referenced this pull request Oct 5, 2017
PR-URL: #12615
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins
Copy link
Contributor

Landed in 5db4c6a

@MylesBorins MylesBorins closed this Oct 5, 2017
@refack refack deleted the v6-inspector-brk branch October 5, 2017 02:58
@refack
Copy link
Contributor Author

refack commented Oct 5, 2017

@MylesBorins is there an RC or nightly for the v6.x branch? I'd like to test this with some IDEs

@MylesBorins MylesBorins mentioned this pull request Oct 17, 2017
MylesBorins pushed a commit that referenced this pull request Oct 25, 2017
PR-URL: #12615
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@MylesBorins MylesBorins mentioned this pull request Nov 3, 2017
MylesBorins added a commit that referenced this pull request Nov 6, 2017
Notable Changes:

* assert:
  - assert.fail() can now take one or two arguments (Rich Trott)
    #12293
* crypto:
  - add sign/verify support for RSASSA-PSS (Tobias Nießen)
    #11705
* deps:
  - upgrade openssl sources to 1.0.2m (Shigeki Ohtsu)
    #16691
  - upgrade libuv to 1.15.0 (cjihrig)
    #15745
  - upgrade libuv to 1.14.1 (cjihrig)
    #14866
  - upgrade libuv to 1.13.1 (cjihrig)
    #14117
  - upgrade libuv to 1.12.0 (cjihrig)
    #13306
* fs:
  - Add support for fs.write/fs.writeSync(fd, buffer, cb) and
    fs.write/fs.writeSync(fd, buffer, offset, cb) as documented
    (Andreas Lind) #7856
* inspector:
  - enable --inspect-brk (Refael Ackermann)
    #12615
* process:
  - add --redirect-warnings command line argument (James M Snell)
    #10116
* src:
  - allow CLI args in env with NODE_OPTIONS (Sam Roberts)
    #12028)
  - --abort-on-uncaught-exception in NODE_OPTIONS (Sam Roberts)
    #13932
  - allow --tls-cipher-list in NODE_OPTIONS (Sam Roberts)
    #13172
  - use SafeGetenv() for NODE_REDIRECT_WARNINGS (Sam Roberts)
    #12677
* test:
  - remove common.fail() (Rich Trott)
    #12293

PR-URL: #16263
MylesBorins added a commit that referenced this pull request Nov 7, 2017
Notable Changes:

* assert:
  - assert.fail() can now take one or two arguments (Rich Trott)
    #12293
* crypto:
  - add sign/verify support for RSASSA-PSS (Tobias Nießen)
    #11705
* deps:
  - upgrade openssl sources to 1.0.2m (Shigeki Ohtsu)
    #16691
  - upgrade libuv to 1.15.0 (cjihrig)
    #15745
  - upgrade libuv to 1.14.1 (cjihrig)
    #14866
  - upgrade libuv to 1.13.1 (cjihrig)
    #14117
  - upgrade libuv to 1.12.0 (cjihrig)
    #13306
* fs:
  - Add support for fs.write/fs.writeSync(fd, buffer, cb) and
    fs.write/fs.writeSync(fd, buffer, offset, cb) as documented
    (Andreas Lind) #7856
* inspector:
  - enable --inspect-brk (Refael Ackermann)
    #12615
* process:
  - add --redirect-warnings command line argument (James M Snell)
    #10116
* src:
  - allow CLI args in env with NODE_OPTIONS (Sam Roberts)
    #12028)
  - --abort-on-uncaught-exception in NODE_OPTIONS (Sam Roberts)
    #13932
  - allow --tls-cipher-list in NODE_OPTIONS (Sam Roberts)
    #13172
  - use SafeGetenv() for NODE_REDIRECT_WARNINGS (Sam Roberts)
    #12677
* test:
  - remove common.fail() (Rich Trott)
    #12293

PR-URL: #16263
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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-minor PRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants