gleam add debug_log
import debug_log as log
type Thing {
This(x: Int, y: Int)
}
pub fn main() {
log.info("just like io.debug")
let thing = This(x: 1, y: 1)
log.debug(thing)
}
Further documentation can be found at https://hexdocs.pm/debug_log.
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell