Skip to content

Instantly share code, notes, and snippets.

@nicovalencia
Last active August 29, 2015 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nicovalencia/9981662 to your computer and use it in GitHub Desktop.
Save nicovalencia/9981662 to your computer and use it in GitHub Desktop.
Chrome dev tools source map auto-linking for unhandled Q.js rejection stack traces
var q = require('q');
if (debug) {
q.onerror = function(err) {
console.log(err); // auto-links source map refs in stack trace
};
}
somePromiseThatThrowsAnError
.then(function() { /* do stuff */ })
.done();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment