mdgriffith/elm-debug-watch

Some functions to conveniently log the input and output of a function.


License
BSD-3-Clause
Install
elm-package install mdgriffith/elm-debug-watch 1.1.0

Documentation

elm-debug-watch

Here are some convenience functions to log the input and output of a function.

You can use it just by putting it in front of a function you’re trying to debug.

import Debug.Watch as Debug

x =
    Debug.watch "add one" addOne 5

results in a console log of

add one : 5
     -> : 6