Skip to content
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

Node v 8: bad option: --expose_debug_as=v8debug #13564

Closed
lukaszewczak opened this issue Jun 8, 2017 · 7 comments
Closed

Node v 8: bad option: --expose_debug_as=v8debug #13564

lukaszewczak opened this issue Jun 8, 2017 · 7 comments
Labels
wrong repo Issues that should be opened in another repository.

Comments

@lukaszewczak
Copy link
Contributor

Hi,
After update to node v 8, it is not possible to debug npm script in Webstorm because of error bad option: --expose_debug_as=v8debug. It worked under node v 6.

  • Version: v8.1.0
  • Platform: Windows 10 (64-bit)
  • Subsystem:

`"C:\Program Files (x86)\JetBrains\WebStorm 2017.1\bin\runnerw.exe" "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" run debug --scripts-prepend-node-path=auto

node %NODE_DEBUG_OPTION% app.js

node: bad option: --expose_debug_as=v8debug
npm ERR! code ELIFECYCLE
npm ERR! errno 9
npm ERR! devmeetings-eventbrite-dashboard@0.0.0 debug: node %NODE_DEBUG_OPTION% app.js
npm ERR! Exit status 9
npm ERR!
npm ERR! Failed at the dashboard@0.0.0 debug script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Dom\AppData\Roaming\npm-cache_logs\2017-06-08T23_19_05_593Z-debug.log

Process finished with exit code 9`

@eugeneo
Copy link
Contributor

eugeneo commented Jun 8, 2017

V8 debugger API had been superseded by the V8 inspector API. If you depend on a module that relies on it you should open a bug against that module.

@sam-github
Copy link
Contributor

duplicate, see #13410 for workarounds

@refack refack added the wrong repo Issues that should be opened in another repository. label Jun 9, 2017
@refack
Copy link
Contributor

refack commented Jun 9, 2017

@lukaszewczak sorry we couldn't do more, but you should check the WebStorm site, they have information about how to work with the new inspector protocol https://www.jetbrains.com/help/webstorm/run-debug-configuration-node-js.html?search=node

@lukaszewczak
Copy link
Contributor Author

Thank you all for the information.

@matthewmorgan
Copy link

FYI for anyone who finds this thread, Webstorm 2017.2 will debug with Node 8

@packetstracer
Copy link

packetstracer commented Jul 26, 2017

adding --inspect value in node parameters worked for me

Link to intellij support post

@mwojtera
Copy link

mwojtera commented Jan 18, 2018

@packetstracer url is badly linked. this works -> https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000397470/comments/115000392244

Still a great find, saved me a lot of work, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wrong repo Issues that should be opened in another repository.
Projects
None yet
Development

No branches or pull requests

8 participants