question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Easier access to node devtools inspector

See original GitHub issue

Is 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:closed
  • Created 5 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
happybeingcommented, Mar 9, 2019

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 😊

0reactions
tannerlinsleycommented, Apr 9, 2019

Looking forward to it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Debugging NodeJS with Chrome Inspector (DevTools) - Medium
To enable NodeJS application to be inspect / debug by chrome, simply add “— inspect=0.0.0.0:9229” to your command line: How many NodeJS (and ......
Read more >
Easier access to node devtools inspector · Issue #1061 · react-static ...
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...
Read more >
Debugging - Getting Started - Node.js
This guide will help you get started debugging your Node.js apps and scripts. Enable Inspector. When started with the --inspect switch, a Node.js...
Read more >
Debugging a Node.Js app using Chrome Dev Tools - Section.io
We have looked at how you can debug a local and remote app using Chrome DevTools. In DevTools, you can observe variable changes...
Read more >
Debug your Node.js app with Chrome DevTools
To inspect your Node.js app with Google Chrome DevTools, you have to make it a remote target. This can be done by using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found