Skip to content

Nodejs 8 (node:4376) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead.  #220

Description

@paulvi

Initially raised as Nodeclipse/www.nodeclipse.org#77

It seems that Nodejs 8 change option names

(node:4376) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead.

The line in question is https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.debug/src/org/nodeclipse/debug/launch/LaunchConfigurationDelegate.java#L114

cmdLine.add("--debug"+brk+"="+nodeDebugPort);

i.e. using --debug is hard-coded now

TODO test with Node.js 8, if using --inspect would work.

HELP WANTED!!

Activity

  1. changed the title [-]Nodejs 8 (node:4376) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead. Was: - Cannot debug JavaScript via Node.JS (Failed to connect to Standalone V8 VM)- Cannot debug JavaScript via Node.JS (Failed to connect to Standalone V8 VM)[/-] [+]Nodejs 8 (node:4376) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead. Was: Cannot debug JavaScript via Node.JS (Failed to connect to Standalone V8 VM)- Cannot debug JavaScript via Node.JS (Failed to connect to Standalone V8 VM)[/+] on Jan 11, 2018
  2. added a commit that references this issue on Jan 11, 2018
  3. dmidge8 commented on May 18, 2018

    @dmidge8

    I still have the same issue, that I found through issue #107 .
    "Nodeclipse/chromedevtools failed to connect to Standalone V8 VM ( Check Help (F1) and Support http://www.nodeclipse.org/#support )
    . Info:
    Connexion refusée (Connection refused)"

    I am using nodeclipse 1.0.2, which seems to be the latest version. Is the fix included in this version?

  4. 1fifoto commented on Jun 26, 2018

    @1fifoto

    I could really use this. Is there anything I can do to help?

  5. paulvi commented on Jul 2, 2018

    @paulvi
    MemberAuthor
  6. changed the title [-]Nodejs 8 (node:4376) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead. Was: Cannot debug JavaScript via Node.JS (Failed to connect to Standalone V8 VM)- Cannot debug JavaScript via Node.JS (Failed to connect to Standalone V8 VM)[/-] [+]Nodejs 8 (node:4376) [DEP0062] DeprecationWarning: node --debug and node --debug-brk are invalid. Please use node --inspect or node --inspect-brk instead. [/+] on Jul 2, 2018
  7. paulvi commented on Jul 2, 2018

    @paulvi
    MemberAuthor

    Also need to know at what Node.js version this option where renamed,
    and do logic to support newer and older versions

  8. tyllastarr commented on Aug 5, 2018

    @tyllastarr

    I am having the issue with Node.js v8.11.3. Haven't tested with Node.js 10 yet, but I plan to later.

  9. Fr33dan commented on Aug 13, 2018

    @Fr33dan

    Unfortunately it's not a renamed option but a completely new replacement. According to the Node.js V6 change log the --inspect option was added in 6.3.0 to use the "inspector protocol" as an experimental feature which is different than the debugger protocol. Then the V8 changelog says:

    • The --debug command-line argument has been deprecated. Note that
      using --debug will enable the new Inspector-based debug protocol
      as the legacy Debugger protocol previously used by Node.js has been
      removed. [010f864426]
      #12949.

    So the issue is not that the the VM failed to launch because of the changed option, but that the debugger can't connect to the VM because the protocol has changed.

    I did go ahead and changing the option in LaunchConfigurationDelegate.java which made the depreciation warning go away, but it still thinks the VM failed to launch.

  10. gregfenton commented on Mar 4, 2019

    @gregfenton

    So I'm guessing the continuation of this issue when running Node-v10.15.2 is expected, yet not desired?
    Windows 10, Node-v10, Nodeclipse Enide/Nodeclipse 1.0.2.201509250223.

    Is the only solution to downgrade Node.JS to pre-V8?

  11. paulvi commented on Mar 5, 2019

    @paulvi
    MemberAuthor

    I am not using Node for few years, so don't have real reason to follow node version changes.

    Some one should step in, willing to solve the issue with Java code.
    I am gonna help to answer any question on how to release.

    HELP WANTED.

  12. david-loran commented on Mar 10, 2019

    @david-loran

    paulvi, it's been many years since I did Eclipse plugin development, so I'm not sure I can help. But isn't it just a matter of changing the nodeclipse plugin's launch configuration of the Node app (e.g., /usr/local/bin/node) to use --inspect or --inspect-brk instead of the deprecated --debug or --debug-brk parameter?

  13. david-loran commented on Mar 10, 2019

    @david-loran

    Sorry, just seeing Fr33dan's comment re. change in protocol above.

  14. paulvi commented on Mar 11, 2019

    @paulvi
    MemberAuthor

    Mostly time is need for testing this change,
    then doing release.

    I can help with the last.

    I don't expect someone is going to take over this project. Otherwise I would explain and help to do release by other person.

  15. Derek-Ashmore commented on May 19, 2019

    @Derek-Ashmore

    Over a year and still no progress on this issue -- Wow!

  16. paulvi commented on May 27, 2019

    @paulvi
    MemberAuthor

    It will not be, until someone steps in to actually do it.

    I am not using Node.js any more, so not going to follow what changes with every version of Node

  17. mrk1989 commented on Apr 1, 2021

    @mrk1989

    Please fix this command for replace --debug to --inspect.

    The comment #220 (comment) is correct!

    C:\Users\muletto10>npm -v
    6.14.11

    C:\Users\muletto10>node -v
    v14.16.0

    C:\Users\muletto10>java -version
    java version "1.8.0_251"
    Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
    Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode)

    C:\Users\muletto10>node.exe --inspect-brk=1337 C:/Users/muletto10/eclipse-workspace-VA/first/hello-world-server.js
    Debugger listening on ws://127.0.0.1:1337/fe46b94c-fe96-47c5-8c2e-3df106065b48
    For help, see: https://nodejs.org/en/docs/inspector
    ^C

  18. mrk1989 commented on Apr 1, 2021

    @mrk1989

    Well , if I do "run Node Program" it work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions