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

Plug Debugger add spacing between arguments #1242

Merged
merged 2 commits into from
Aug 26, 2024

Conversation

axelson
Copy link
Contributor

@axelson axelson commented Aug 24, 2024

Some exceptions can have arguments that are very long when printed out (I'm looking at you %Plug.Conn{}!):
Screenshot 2024-08-24 08-28-08@2x

This makes it very difficult to at-a-glance find the second, third, etc arguments (for what it's worth, I find this true in IEx as well). This PR improves this issue by adding some spacing between the arguments so that they stand out more as well as switching the numbers to use the primary color (but with 50% filter applied so it doesn't stick out too much). I like the coloring change because it makes it more clear that the numbers are not part of the exception itself.

Here's the changes:
Screenshot 2024-08-24 08-47-21@2x

And here's the first screenshot with the changes:

Screenshot 2024-08-24 08-51-06@2x

Copy link
Member

@whatyouhide whatyouhide left a comment

Choose a reason for hiding this comment

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

Personally love it 💟

@josevalim josevalim merged commit 2f00897 into elixir-plug:main Aug 26, 2024
2 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@axelson axelson deleted the plug-debugger-argument-spacing branch August 26, 2024 13:23
@axelson
Copy link
Contributor Author

axelson commented Aug 26, 2024

🎉

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

Successfully merging this pull request may close these issues.

3 participants