Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dbg! instead of println! for simple debug prints #2478

Open
mgeisler opened this issue Nov 28, 2024 · 0 comments
Open

Use dbg! instead of println! for simple debug prints #2478

mgeisler opened this issue Nov 28, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@mgeisler
Copy link
Collaborator

Originally, we did not show stderr output from the Playground programs. This was fixed in #2397 and so we can finally start converting the trivial debug print statements to use dbg!.

Specifically, I'm thinking of the many print statements that look like this:

println!("a: {a:?}");

They can simply become

dbg!(a);

When doing this conversion, pay attention to any <!-- i18n:skip --> lines before the code block. They were added to skip translation of the "a: {a:?}" string, but now that the string disappears, the skip directive should be cleaned up too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant