How to get rid of ellipsis and see everything in IO.inspect()
When we look at the examples there are lines with only '...' that replace some data, see https://www.ash-hq.org/docs/guides/ash/latest/tutorials/get-started#try-our-first-resource-out
The truncation seems some behaviour of IO.inspect().
I would like to use IO.inspect() and see everything, even it uses a lot of space. I tried the following code in an exs script with Elixir 1.14.1 (compiled with Erlang/OTP 25) :
The Output is still truncated. I inserted the :limit and :printable_limit options but it does not help. My output:
6 Replies
IO.inspect(structs: false)
Warning: it will be yuge in some cases
This is seared in my head after wondering the same as you. dbg might not truncate as much.
Yuge?
Huge 😂
Like lots of output
Lol oh yeah
IO.inspect(structs: false)
worked. thanks a lot 🙏
It's a little bit hidden in the elixir docs: :structs - when false, structs are not formatted by the inspect protocol, they are instead printed as maps. Defaults to true.
and I still don't understand why the :infinity values did not work