I’m trying to get started on the huge project called Sketch-n-Sketch. I found some behaviour which causes an error, which I can see in the Chrome developer console. The error is cause by the program creating some invalid SVG output. I can click the stack-trace to find where the error is caused on in the JS output file, however I’m having a hard time finding where the error is being caused in the Elm code.
How does one typically map from a JS error to an Elm file?
What I’ve tried
I feel like I might be asking for an Elm debugging tutorial, since I’ve only written small programs while going through the Elm tutorial. I’ve seen you can apparently use elm-make --debug, but when I try to do this, a bunch of ports aren’t found. So I think it doesn’t apply to this case? However, the project seems to be sprinkled with Debug.log and Debug.crash statements, so maybe there’s so may to get this to work?
I also know that currently source-maps don’t exist for Elm, which is how I usually accomplished this when I used TypeScript.