Fixing error from setting a pry breakpoint

If you’re on pry-byebug 3.9.0 or earlier and and if you got an error like this:

NameError: undefined local variable or method `text' for #<PryByebug::BreakCommand:0x00007fd6371996e0>
Did you mean?  test
from /Users/justin/.rvm/gems/ruby-2.7.3/gems/pry-byebug-3.8.0/lib/pry-byebug/helpers/breakpoints.rb:42:in `print_full_breakpoint'

The current max versions of pry and pry-byebug have an issue when setting a breakpoint to a specific line number.

So pry-byebug 3.9.0:

and pry 0.13.0 gave me the error above.

The solution is this combination of gems, as of June 24, 2021:

  gem 'pry', '>= 0.14.1' # Console with powerful introspection capabilities
  # Need to use master of pry-byebug to use latest pry version
  gem 'pry-byebug', github: 'deivid-rodriguez/pry-byebug' # Integrates pry with byebug

  # These enhance the pry experience!
  gem 'pry-doc' # Provide MRI Core documentation
  gem 'pry-rails' # Causes rails console to open pry. `DISABLE_PRY_RAILS=1 rails c` can still open with IRB
  gem 'pry-rescue' # Start a pry session whenever something goes wrong.
  gem 'pry-theme' # An easy way to customize Pry colors via theme files