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
I think this is the same issue I ran into and posted in another thread. Your repro is a lot better than mine though
Yeah, some of my newer changes that fixed debug as a whole probably regressed this functionality, will look into it.
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.
It will now! Just got it working locally.
Added to the changes in #6143
I’ll take a look asap tonight Brendan
Many thanks for your help and reviews!
Of course. Thanks for working through this. It's always good when we spread the knowledge base.
Wow, that was quick Brendan. Nice
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