Skip to content

Commit

Permalink
support Ruby 3.3
Browse files Browse the repository at this point in the history
by skipping `bundled_gems.rb`
  • Loading branch information
ko1 committed Dec 9, 2023
1 parent 04c22c5 commit ac40099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/debug/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2190,6 +2190,7 @@ def self.require_location
case loc.absolute_path
when dir_prefix
when %r{rubygems/core_ext/kernel_require\.rb}
when %r{bundled_gems\.rb}
else
return loc if loc.absolute_path
end
Expand Down
2 changes: 1 addition & 1 deletion test/console/rdbg_option_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def program
def test_debugger_stops_immediately
run_rdbg(program, options: "--stop-at-load") do
# stops at the earliest possible location
assert_line_text(/\[C\] Kernel#require/)
assert_line_text(/\[C\] Kernel[#\.]require/)
type "c"
type "a + 'bar'"
assert_line_text(/foobar/)
Expand Down

0 comments on commit ac40099

Please sign in to comment.