Locating a server bug: debugging and the debugger tool for beginners

Thanks for the detailed feedback, I’ll have to distill those pointers down and get used to slightly larger programs. I’m starting to struggle to grasp concepts a bit — I think finding other examples/tutorials helps.

I found another great example of Http.get with a simple string at Beginning Elm. I think it helps having each functionality isolated so you can properly see what’s going on.

That tutorial also has a problem with cors — even though you’re serving both servers on localhost — but thankfully you can change the heading returned by the server with --cors flag to allow it.

So NetworkError could be anything then! I like the fact that you can keep the Debug.log separate in a let. Nice.

I’m sure I’ll learn more about error-checking and security either in the book, or further research.

Thanks so much!