Debug.todo marks missing functionality which needs to be added gradually
Debug.log is a quick and dirty way to display an elm value in the console
and can for example be used to inspect private (opaque) types.
It's nothing a published product should make use of.
Debug.toString is a quick and dirty way to display an elm value anywhere,
similar to Debug.log
Using any Debug member also prevents compiling in optimized mode and publishing as a package.
reported
a =
"" |> Debug.log "text"
b =
Debug.todo ""
c =
1 |> Debug.toString
not reported
a =
consoleWarnPort "text"
c =
1 |> String.fromInt
Report using a member of the
DebugmoduleDebug.todomarks missing functionality which needs to be added graduallyDebug.logis a quick and dirty way to display an elm value in the console and can for example be used to inspect private (opaque) types. It's nothing a published product should make use of.Debug.toStringis a quick and dirty way to display an elm value anywhere, similar toDebug.logUsing any
Debugmember also prevents compiling in optimized mode and publishing as a package.reported
not reported