diff options
author | Stan Lo <[email protected]> | 2024-02-16 14:30:22 +0000 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-02-19 11:01:30 +0900 |
commit | 7e577e150a6897074bb5aaafb298b0605f00970f (patch) | |
tree | 8ba13de1df4a004cb548e868cc5b9c87b222a804 /lib/irb | |
parent | 9ec9910081b5d91becf9d9d8df7ea65c2ccc3a71 (diff) |
[ruby/irb] Fix `irb:rdbg` for ruby head
(https://github.com/ruby/irb/pull/876)
* Update binding.irb check for Ruby head
With https://github.com/ruby/ruby/pull/9605, backtrace in Ruby head
now has a new format. This commit updates the check for binding.irb
to work with Ruby head.
* Do not include a backtick in error messages and backtraces
[Feature #16495]
---------
https://github.com/ruby/irb/commit/ebffd3d976
Co-authored-by: Yusuke Endoh <[email protected]>
Diffstat (limited to 'lib/irb')
-rw-r--r-- | lib/irb/command/debug.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/command/debug.rb b/lib/irb/command/debug.rb index 9a2c641251..bdf91766bc 100644 --- a/lib/irb/command/debug.rb +++ b/lib/irb/command/debug.rb @@ -11,7 +11,7 @@ module IRB BINDING_IRB_FRAME_REGEXPS = [ '<internal:prelude>', binding.method(:irb).source_location.first, - ].map { |file| /\A#{Regexp.escape(file)}:\d+:in `irb'\z/ } + ].map { |file| /\A#{Regexp.escape(file)}:\d+:in (`|'Binding#)irb'\z/ } def execute(pre_cmds: nil, do_cmds: nil) if irb_context.with_debugger |