Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

coffeescript sourcemap not loading in chrome

coffeescript sourcemap not loading in chrome

Problem

I am able to compile coffee file to .map file in the same directory as the .coffee/.js file when I call

coffee --nodejs --debug-brk app.coffee

and start the node-inspector. The js version of the app file gets loaded in Chrome. what am i missing??

this is what chrome is showing for three.coffee file ..

(function (exports, require, module, __filename, __dirname) { // Generated by CoffeeScript 1.6.2
(function() {
  app.get('/three', function(req, res) {
    debugger;    return res.send('three/teedde');
  });

}).call(this);

/*
//@ sourceMappingURL=three.map
*/

});

thanks

Problem courtesy of: coool

Solution

And now node-inspector supports source maps! github.com/node-inspector/node-inspector/issues/… – Vitaliy Lebedev Nov 8 '13 at 12:46

Solution courtesy of: coool

Discussion

View additional discussion.



This post first appeared on Node.js Recipes, please read the originial post: here

Share the post

coffeescript sourcemap not loading in chrome

×

Subscribe to Node.js Recipes

Get updates delivered right to your inbox!

Thank you for your subscription

×