Node.js has a built-in debugger that you can start in running processes. To do this, send a
SIGUSR1 signal to the running process and connect a debugger. The one, big caveat here is that the
debugger only listens on the local interface,
The following are instructions for debugging Node.js applications running in your company's private network from your laptop, through a bastion host.
This post is about how we built our test suite for our API server at Rollbar and some of the tricks and gotchas we ran into along the way. We wanted to build a test suite that not only tested the API logic, but also the underlying code, namely the Express and the Connect middlewares we use. If our API server was going to break, we wanted to know before we deployed it to thousands of customers and millions of requests per day.
Testing is super important. If you don’t want to test, this probably won’t be very helpful or interesting.