Easier access to node devtools inspector
See original GitHub issueIs your feature request related to a problem? Please describe.
I’ve gotten into the habit of using node --inspect
to access chrome devtools in place of the terminal, and I’d like to be able to do that while working on react-static projects. Devtools offers a lot more flexibility for debugging, so it’s a big win to be able to access it.
Describe the solution you’d like
Ideally, one could just do react-static --inspect
or even just add the functionality to react-static --debug
.
Describe alternatives you’ve considered
Right now, I can get fairly concise access to the inspector with node --inspect -e "require('react-static/node').start()"
. It’s easy enough, but detaching it from the CLI tool reduces it’s flexibility, and it also keeps other users from adopting a pretty awesome little helper.
Additional context
Links:
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Ah, I see now. I think I misunderstood your suggestion - you are talking about debugging
React-static
itself. At first I thought you were talking about debugging a website built with it - my bad 😊Looking forward to it!