-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
Add --auto-open flag w/ --inspect #12069
Comments
Probably related: #11207 (If we decide to be vendor-neutral about the |
Just a thought, but perhaps this would be better suitable as a feature addition to example: $ NODE_INSPECTOR=chrome node-inspect foo.js |
I don't think this is a good idea for core. We'd have to know how to start every set of supported debugging tools on every supported platform. It also wouldn't be very vendor neutral. |
I should say as a side note that the debugging story for node is definitely an area that needs work. Most people are still using |
Going with an environment variable approach where the value of the env var is required to include the launch pattern for the debugger would certainly provide a workable generic approach. e.g. |
/cc @jkrems |
I totally agree - it's not a good workflow. I wish we wouldn't be printing those URLs. If you're using Chrome Devtools, you can just go to I say highly dynamic because as long as you have a limited set of IP+port combinations, you can use "Configure..." to register them on |
Thanks @jkrems. That's the best way to do things now. We can close this. For what it's worth, that workflow didn't exist when I filed this issue. Glad the workflow is much better now :) |
@kentcdodds Sorry, didn't mean to imply that the ticket wasn't totally reasonable at the time. :) |
Use Node.js V8 --inspector Manager (NiM) Chrome plugin, it opens Chrome automagically when I run |
Based on #7992, I'm filing this issue to start a discussion around supporting a flag that would open or refresh an
inspect
session. Because copying/pasting the URL is a suboptimal workflow. I believe there's a chrome extension that will basically do this, but it'd be really nice to have it supported natively.The text was updated successfully, but these errors were encountered: