Sourcemaps #1341
JeffreyBenjaminBrown
started this conversation in
Ideas & suggestions
Sourcemaps
#1341
Replies: 2 comments 3 replies
-
This is a great idea, one I think will bring a lot of value. I'm not familiar with how they work so I'm not sure how much work it would be, but let's definitely do it. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Hey @lpil, I'm interested in contributing this feature -- are you still open to it? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Javascript supports sourcemaps (sometimes as the two words "source maps"). These allow, at least for some languages that compile to Javascript, one to look up the source passage that compiled to the Javascript passage in question. This makes handy things like a REPL and a debugger feasible for the source language. (According to Reddit user cstone949, sourcemaps are good for more than that,. but I don't know what. I've told him about this Github issue.)
Gleam compiles to Erlang. One could therefore, in theory, use the ordinary Erlang debugger to debug the compiled-to Erlang. At this time, however, one cannot use a debugger on source Gleam code.
(I don't know whether sourcemaps are the only way to make such things feasible for Gleam. I also don't know whether any language other than Javascript supports source maps.)
Beta Was this translation helpful? Give feedback.
All reactions