elixir-plug / plug

Compose web applications with functions
https://hex.pm/packages/plug
Other
2.84k stars 582 forks source link

Plug Debugger add ability to wrap exception text #1241

Closed axelson closed 2 weeks ago

axelson commented 3 weeks ago

Sometimes exceptions print out with really long lines which makes it difficult to read the exceptions on the error page:

https://github.com/user-attachments/assets/f276000c-4c6c-43a1-86bd-1355dc89c7b6

This PR wraps the text and decreases the font size so more can be read without scrolling: Screenshot 2024-08-26 08-26-46@2x

previous implementation This PR adds a "Wrap text?" checkbox that toggles wrapping on the exception details: https://github.com/user-attachments/assets/aa18c6fc-3f25-4646-8a50-2d68c0714696 It also decreases the font size slightly so that it is easier to read the details Alternatively we may want to only change the CSS to always wrap and also decrease the font-size. Or maybe keep the checkbox but default it to on.
whatyouhide commented 2 weeks ago

Should we think about just always wrapping text instead?

josevalim commented 2 weeks ago

Yes, let's wrap by default and decrease the font size. :+1:

axelson commented 2 weeks ago

Okay, updated!

josevalim commented 2 weeks ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: