Dan Key Dan Key - 1 month ago 4
Ruby Question

How do I show more surrounding code in byebug?

By default byebug shows 10 lines, e.g. lines

[40, 49]

How can I easily see some more surrounding code? For example lines 30-60

Answer

You are looking for set listsize.

P.S. never used byebug, just a quick sight on the gem's Readme.