E
E
Egor Developerov2015-11-06 17:40:23
Debugging
Egor Developerov, 2015-11-06 17:40:23

How do you debit your Node apps?

Good day, advise the module for debugging the application. Of course, you can use standard debugging tools, those that the node gives, but when the project grew out of diapers, it became extremely inconvenient.
It was not possible to make friends with the v.5.0.0 interpreter with node-inspector`om.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2015-11-06
@k12th

Unit tests (and splitting the application into separate, debugged, and covered packages) greatly reduce the need for debugging. Well, the rest is the old fashioned way, console.error :(

D
Dmitry Gusev, 2015-11-06
@illi

I, in order to save myself from the eternal monitoring of the logs, hung up the global handler on uncaughtException and send myself error stacks by email.
Very comfortably

process.on('uncaughtException', function (err) {
mailer.SendErrCrashEmail({err: err, stack: err.stack});
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question