Bug 537907 - Node.js debug protocol depreciated.
Summary: Node.js debug protocol depreciated.
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: Debug (show other bugs)
Version: 3.10 (Photon)   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Victor Rubezhny CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-08-13 15:59 EDT by Joseph Tignor CLA
Modified: 2019-04-03 10:11 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Tignor CLA 2018-08-13 15:59:20 EDT
There has been a change to Node.js that has broken Node.js debugger built into the web tools. According to the Node.js change log (https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V6.md#6.3.0) 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 (https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V8.md#8.0.0) says that in version 8.0.0 the --debug option was depreciated and that the option now triggers the new (and I assume no longer experimental) --inspect protocol.

Because of this when I try to launch my application after the VM starts the debugger reports the connection to it timed out:

Failed to connect to Standalone V8 VM
connect timed out
Comment 1 Lyle Ziegelmiller CLA 2019-04-03 10:11:44 EDT
I can't get the debugger to work either.

An error message pops up which reads, "Failed to connect to Standalone V8 VM
Timed out waiting for handshake".

I've tried passing --inspect as "Node arguments" in the Debug Configuration window, but that didn't help.

Info:

$ which node
/cygdrive/c/Program Files/nodejs/node

$ node --version
v10.15.3

Eclipse IDE for Enterprise Java Developers.

Version: 2019-03 (4.11.0)
Build id: 20190314-1200

Operating System: Windows 10 Pro 64-bit (10.0, Build 17763) (17763.rs5_release.180914-1434)
Language: English (Regional Setting: English)