Using longjohn couldn't get any easier. You just need to
MoreInfo
npm reference
require('longjohn')
and you are all set. The magic that I mentioned above consists of replacing functions like setTimeout
and nextTick
with patched versions that keep track of the stack as it unfolds and as author suggests, this probably shouldn't be used in production.MoreInfo
npm reference