Verlon Smith
Verlon Smith

Reputation: 43

How to enable the debug flag of Elm 0.18 in phoenix/elixir

I am starting a new project trying to use both the Phoenix framework and Elm. I have the project setup properly, but I was wanting to enable the debugger that was released in Elm 0.18 in my project. Does anyone know how to enable the --debug flag with Brunch or Phoenix. Thanks.

Upvotes: 4

Views: 540

Answers (2)

Jason O.
Jason O.

Reputation: 3310

@niel on the Elm Slack channel provided the following answer for elm-webpack-loader configuration.

loader:  'elm-hot!elm-webpack?verbose=true&warn=true&debug=true'

Per @rtfeldman's elm-webpack github repo, you need v3.1.0 for debug support.

Hope this helps someone.

Upvotes: 0

Simon H
Simon H

Reputation: 21047

Add this to your brunch-config.json

elmBrunch: {
    makeParameters : ['--debug']
},

I've not found brunch to work very well with Elm and switched to gulp: take a look at https://github.com/simonh1000/elm-phoenix-starter for config advice

Upvotes: 6

Related Questions