I'm able to dbg sumNums
where sumNums
is a List (Int Unsigned32)
.
I get an exit code of 11 when it's a List (List (Int Unsigned32))
.
How should I debug nested lists?
Also, it'd be really great to be able to just |> dbg
.
|> dbg
is in the plans
I get an exit code of 11 when it's a List (List (Int Unsigned32)).
Interesting. I guess file and bug and hopefully we can figure out what is going on.
Until then, using List.map and doing it manually may work
List.map \x ->
dbg x
x
Anton said:
|> dbg
is in the plans
Fwiw, my expectation for the output from |> dbg
was to print the value that was being piped into that line.
To use |> dgb, I used a small helper:
debug : a -> a
debug = \v ->
dbg v
v
This works perfectly fine since the last nightly build.
Cool, I had not thought of that, thanks for sharing @Oskar Hahn :)
Last updated: Jul 05 2025 at 12:14 UTC