Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug *.js.dna files with sourcemaps #39

Open
xekoukou opened this issue Aug 8, 2015 · 2 comments
Open

Debug *.js.dna files with sourcemaps #39

xekoukou opened this issue Aug 8, 2015 · 2 comments

Comments

@xekoukou
Copy link
Contributor

xekoukou commented Aug 8, 2015

http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/

Now, the only way seems to be to generate the rna file and debug that file.

@sustrik
Copy link
Owner

sustrik commented Aug 8, 2015

Yes. But I don't think there's an easy solution for that. Every compiler (and ribosome is a compiler) can either require generating the output and using the underlying language's debugging tools on that or build its own debugging tools.

@xekoukou
Copy link
Contributor Author

xekoukou commented Aug 8, 2015

I am putting this as a future goal. I haven't looked at it very closely.

The way to debug node-javascript is to use the browser debugger (like chrome debugger). Chrome supports sourcemaps. So it seems that we just need to generate the sourcemaps.

I haven't looked how to do it but javascript has quite a big community that makes me optimistic.

For reference, I need to look at these:
https://www.npmjs.com/package/source-map
https://hacks.mozilla.org/2013/05/compiling-to-javascript-and-debugging-with-source-maps/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants