How to debug elm app with ports? (elm reactor)

Sorry, I’m new to elm. This might be a stupid question.

I know I can use elm reactor when writing elm app. But ports is in JavaScript code.


The following are the details:

I have a speech synthesizing service in JS. The sdk is large. So I don’t wait for sdk to load. I just Elm.Main.init the app, and load the sdk in defer script. Just show the UI before the sdk loaded. But I must notify the elm part after the sdk loaded.

So the entire app depends on the notifying port. If the elm reactor don’t support html or js, how to debug port functions?

2 Likes

Hi @PPz ,

Welcome to the Elm community,

elm reactor is made for simple applications and has limitations. Not being able to add custom JS is one of them.

You may need to look at other solutions, Home | elm-watch for example.

4 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.