TooTallNate / gnode

Run node with ES6 Generators, today!
MIT License
248 stars 15 forks source link

Stack traces line number are messed up #3

Open TooTallNate opened 11 years ago

TooTallNate commented 11 years ago

Understandably... need to wait for regenerator source maps or something I guess...

benjamn commented 10 years ago

Can Node use source maps for modules that are required?

TooTallNate commented 10 years ago

Not out-of-the-box: https://github.com/joyent/node/issues/3712

But Mozilla's maybe: https://github.com/mozilla/source-map (https://hacks.mozilla.org/2013/05/compiling-to-javascript-and-debugging-with-source-maps/)

Or perhaps: https://github.com/evanw/node-source-map-support (http://badassjs.com/post/42588937391/node-js-source-map-support-for-better-compiled)

raine commented 9 years ago

Is there a way to read the compiled source when using gnode programmatically?