Skip to content

Conversation

dkuku
Copy link
Contributor

@dkuku dkuku commented Jul 30, 2025

Print intermediate results when using dbg with pipes.
Screenshot From 2025-07-31 00-35-07

Copy link
Contributor

@sabiwara sabiwara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

{formatted, value} = dbg_format_ast_to_debug({:pipe, code_ast, value}, options)

{[first_formatted | rest_formatted], result}
{[formatted | ?\n], value}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
{[formatted | ?\n], value}
{[formatted, ?\n], value}

Otherwise this isn't valid chardata/ansidata, even if the current implementation of ANSI.format currently doesn't fail.

@josevalim josevalim merged commit 9b34ec2 into elixir-lang:main Jul 31, 2025
13 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

ggVGc pushed a commit to ggVGc/elixir-verbatim that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants