irb
irb copied to clipboard
interactive Ruby
Sometimes we run into inaccessible context when debugging, such as anonymous arguments: `*`, `**`, `&`, `...`, or arguments that conflict with Ruby keywords, such as `class`, `end`, `if`. In these...
## Description When evaluating a Ruby expression that starts with `break` while not using the debugger, the behavior of the ruby code changes. ```console $ ruby -e 'p((break :foo while...
## Description Create a ruby script with `File.write("a.rb", "# coding: sjis\nbinding.irb\n__END__\nあ".encode("sjis"))` Run `ruby a.rb` IRB fails to colorize code around `binding.irb` ``` ruby -e 'File.write("a.rb", "# coding: sjis\nbinding.irb\n__END__\nあ".encode("sjis"))' ruby a.rb...
## Description `irb` can find the source of a method defined during the repl session, but not its parent class. ``` irb(main):001* class Foo irb(main):002* def x = "Hello, world!"...
## Description Rails console HISTORY is unavailable with `RUBY_DEBUG_IRB_CONSOLE=1` ### Preparation Create new rails app with `rails new appname`. Add `gem 'spring'` to Gemfile and run `spring binstub --all`. (This...
https://github.com/ruby/irb/compare/v1.14.0...master
Debug evaluates code in `frame.eval_binding`, not `frame.binding` ```ruby irb(main):001> debug irb:rdbg(main):002> tc = DEBUGGER__::SESSION.instance_variable_get(:@tc) #
Makes test_rendering faster. Yamatanooroti's wait time is reduced from 0.1 sec to 0.01 sec `test_yamatanooroti(vterm-yamatanooroti head)`: 37.58 sec → 10.72 sec ## startup_message We don't need `puts 'start IRB'`. It...
## Description I have `binding.irb` in a ruby file of my Rails 7.2 app. I run a RSpec test, enter the binding session, hit `n` (alias of `next` as per...
With a new Rails app created from rails/main, IRB consistently crashes when invoked from a ruby/debug session started using debugger on Ruby 3.3.5. This is the error and backtrace: ```...