DebugIsNotUsed

Report Debug usage.

check : Check

Report uses of Debug module members

  • Debug.todo marks missing functionality which needs to be added gradually
  • Debug.log is a quick and dirty way to display a 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 a value anywhere, similar to Debug.log

Debug members also can't be compiled in optimized mode and prevent publishing as a package.

reported

a =
    "" |> Debug.log "text"

b =
    Debug.todo ""

c =
    1 |> Debug.toString

not reported

a stdout =
    Stream.Log.line stdout "text"

b =
    Node.exit 1

c =
    1 |> String.fromInt