https://github.com/mdgriffith/elm-debug-watch
Convenience functions to log the input and output of a function.
https://github.com/mdgriffith/elm-debug-watch
Last synced: over 1 year ago
JSON representation
Convenience functions to log the input and output of a function.
- Host: GitHub
- URL: https://github.com/mdgriffith/elm-debug-watch
- Owner: mdgriffith
- License: bsd-3-clause
- Created: 2018-03-15T12:27:25.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-17T15:38:41.000Z (about 8 years ago)
- Last Synced: 2025-01-21T18:51:25.596Z (over 1 year ago)
- Language: Elm
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```elm
import Debug.Watch as Debug
x =
Debug.watch "add one" addOne 5
```
results in a console log of
```console
add one : 5
-> : 6
```