Stack trace and exceptions in console

How can I get the same stack trace and exceptions as I get with

app.use(express.errorHandler({
    showStack: true, 
    dumpExceptions: true
}));

but only in console?

console.trace(err) doesn't give the same result as I get from the above.