Stream: advent of code

Topic: `dbg` and `expect` bugfixes


view this post on Zulip Richard Feldman (Dec 10 2022 at 02:31):

FYI, some expect and dbg bugfixes will be released with tonight's nightly (December 9), so if you have a chance to try them out (especially multiple dbg and expects that fail while having named variables inside them whose values they ought to print out), that would be awesome!

view this post on Zulip Erik (Dec 10 2022 at 03:28):

I just built from source and played around a bit and its awesome! Used dbg on lists of things, records, and other various vars I have and it is working great!

view this post on Zulip Erik (Dec 10 2022 at 03:33):

Just found something interesting though! If I have something like

        args <- Arg.list |> Task.await
       # and then add
       dbg args

It works the first time i roc dev but from the second time on it breaks.

image.png

view this post on Zulip Brendan Hansknecht (Dec 10 2022 at 04:32):

I was able to use this successfully and print many values. That said, after a large number of prints, the app would just crash. I'll try to make a minimal repro and file and issue later tonight or tomorrow.


Last updated: Jul 06 2025 at 12:14 UTC