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 --expose_debug_as=v8debug gives "bade option" #13410

Closed
Tonacatecuhtli opened this issue Jun 2, 2017 · 4 comments
Closed

node --expose_debug_as=v8debug gives "bade option" #13410

Tonacatecuhtli opened this issue Jun 2, 2017 · 4 comments
Labels
question Issues that look for answers. v8 engine Issues and PRs related to the V8 dependency.

Comments

@Tonacatecuhtli
Copy link

  • Version: 8.0.0
  • Platform: 64-bit (Windows)
  • Subsystem:

Hi i just updated to node v8.0.0 and now im can't start the debugger anymore.

To reproduce just enter the following on your cmd or shell:

node --expose_debug_as=v8debug
Program Files\nodejs\node.exe: bad option: --expose_debug_as=v8debug

with v7.10.0 this isn't a problem.

@addaleax addaleax added debugger question Issues that look for answers. v8 engine Issues and PRs related to the V8 dependency. labels Jun 2, 2017
@sam-github
Copy link
Contributor

8.x no longer has the "debugger" (it has been deleted from v8), it has the "inspector", so this functionality is gone as is the CLI to expose it.

Consider using the inspector: https://nodejs.org/api/inspector.html

/cc @ofrobots @eugeneo

@ofrobots
Copy link
Contributor

ofrobots commented Jun 2, 2017

You can use this instead.

const vm = require('vm');
const v8debug = vm.runInDebugContext('Debug');

Note that vm.runInDebugContext is going away soon too, and your best bet would be to move the the inspector API as @sam-github mentioned.

@Tonacatecuhtli
Copy link
Author

Thanks a lot.

@nfrigus
Copy link

nfrigus commented Aug 3, 2017

Got here trying to run debug on node v8 in WebStorm.
It worked for me after adding --inspect to node parameters as stated here:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/115000397470-Debugging-node-version-8-1-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Issues that look for answers. v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

No branches or pull requests

5 participants