How can I get error reporting in Node? I am running v0.6.15 (used simple osx install DMG) and whenever there is an error, say I try to use a undefined variable, the process just stops with no indication as to why.
I guess im looking for the node version of PHP's error_reporting(E_ALL);
Any suggestions?
==EDIT==
Weird... Ok... So I noticed that I gets errors just fine in the file I run, but not in the ones I "require"
The file I am running simply has this code
process.on('uncaughtException', function(err) {
console.log(err);
});
var ImageProcessor = require('./ImageProcessor').ImageProcessor;
var imageProcessor = new ImageProcessor();
imageProcessor.imageRequestEnd();
The imageProcessor is a mootools class if that matters but isnt using anything else that special.