Stream: beginners

Topic: dbg not showing on `roc test`


view this post on Zulip Ian Liu Rodrigues (Dec 02 2023 at 23:38):

The following program doesn't show the debug messages when I run it with roc test. Is there a way to show the debugging messages? The Roc Tutorial (https://www.roc-lang.org/tutorial#debugging) seems to imply the debug messages should work in this case.

foobar =
    dbg "Hi"
    "the foobar string"

expect foobar == "hi"

main =
    Stdout.line foobar

view this post on Zulip Pearce Keesling (Dec 02 2023 at 23:40):

I think this is the same issue I ran into and posted in another thread. Your repro is a lot better than mine though

view this post on Zulip Brendan Hansknecht (Dec 03 2023 at 00:02):

Yeah, some of my newer changes that fixed debug as a whole probably regressed this functionality, will look into it.

view this post on Zulip Luke Boswell (Dec 03 2023 at 00:33):

I dont think dbg ever worked with roc test. I'm not sure but from my testing I thought only roc dev. I feel like it should though, if that is possible.

view this post on Zulip Brendan Hansknecht (Dec 03 2023 at 00:54):

It will now! Just got it working locally.

view this post on Zulip Brendan Hansknecht (Dec 03 2023 at 00:54):

Added to the changes in #6143

view this post on Zulip Ayaz Hafiz (Dec 03 2023 at 01:31):

I’ll take a look asap tonight Brendan

view this post on Zulip Brendan Hansknecht (Dec 03 2023 at 01:36):

Many thanks for your help and reviews!

view this post on Zulip Ayaz Hafiz (Dec 03 2023 at 01:44):

Of course. Thanks for working through this. It's always good when we spread the knowledge base.

view this post on Zulip Luke Boswell (Dec 03 2023 at 05:02):

Wow, that was quick Brendan. Nice

view this post on Zulip Notification Bot (Dec 03 2023 at 17:20):

2 messages were moved from this topic to #beginners > error in alias analysis by Brendan Hansknecht.


Last updated: Jul 06 2025 at 12:14 UTC