Skip to content

Commit acd5fc5

Browse files
committed
support Ruby 3.3
by skipping `bundled_gems.rb`
1 parent 04c22c5 commit acd5fc5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/debug/session.rb

+1
Original file line numberDiff line numberDiff line change
@@ -2190,6 +2190,7 @@ def self.require_location
21902190
case loc.absolute_path
21912191
when dir_prefix
21922192
when %r{rubygems/core_ext/kernel_require\.rb}
2193+
when %r{bundled_gems\.rb}
21932194
else
21942195
return loc if loc.absolute_path
21952196
end

test/console/rdbg_option_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def program
7272
def test_debugger_stops_immediately
7373
run_rdbg(program, options: "--stop-at-load") do
7474
# stops at the earliest possible location
75-
assert_line_text(/\[C\] Kernel#require/)
75+
assert_line_text(/\[C\] Kernel[#\.]require/)
7676
type "c"
7777
type "a + 'bar'"
7878
assert_line_text(/foobar/)

0 commit comments

Comments
 (0)