Hacker News new | ask | show | jobs
by sroussey 512 days ago
And these days, you use the same browser debug tools to attach to nodejs.
2 comments

Yes, but it's missing the network tab, see https://github.com/nodejs/diagnostics/issues/75
For local development, yes. But I see that almost never done in production settings, especially with containerized workloads. Is there a neat way to do it in Kubernetes?
Well, I suggest never enabling the debugger in production.

But if you meant a local or dev server where you start node with --inspect then the port to forward is 9229 by default.