Improved format for beebug (with colors)

Is there a way to get a better output format using beebug? When I print objects, the output is a little hard to read, better with colors like Awesome Print .

+5
source share
2 answers

There is no built-in parameter on beebug for formatting output with colors, but there is a Gem that you can use to color some byebug output for readability, and I think this is what you are aiming for.

Please follow this link for instructions on installing the byebug-color-printer gem printer. https://github.com/ahmadsherif/byebug-color-printer

Or you can use pry. https://github.com/pry/pry :)

Let me know how it works for you. I hope this helps.

+3
source

If you add awesome_print to your project (via Gemfile, if you use bundler) then ap will be available to you inside byebug .

+1
source

Source: https://habr.com/ru/post/1237205/


All Articles