Using the gem pry-byebug, when I add a binding.pry somewhere, it shows only 5 lines around the line that I am:
157: max_bytes: limits_config.max_read_bytes_per_parser,
158: max_reads: limits_config.max_reads_per_parser,
159: max_seeks: limits_config.max_seeks_per_parser
160: )
161:
=> 162: results = parsers.lazy.map do |parser|
163: # Reset all the read limits, per parser
164: limited_io.reset_limits!
165: read_limiter_under_cache.reset_limits!
166:
167: # We need to rewind for each parser, anew
Is there a way to increase this number to show more lines of code?
Use
whereamiwith an integer argument specifying the number of lines to return.For example, given the file
foo.rb:Run it with
ruby foo.rb:And ask to see +/- 10 lines with
whereami 10:Or just the two surrounding lines with
whereami 1: