ruby / debug

Debugging functionality for Ruby
BSD 2-Clause "Simplified" License
1.14k stars 127 forks source link

Handle case when defined?(RubyVM.keep_script_lines) is false #1115

Closed kddnewton closed 2 months ago

kddnewton commented 2 months ago

When defined?(RubyVM.keep_script_lines) was true, orig_src would perform additional work of handling the start line, but in the branch where it was false this wasn't done. This commit changes orig_src to call into a private iseq_src method to get the source lines and then shares the start line work.

launchable-app[bot] commented 2 months ago

:white_check_mark: All Tests passed!

:heavy_multiplication_x:no tests failed :heavy_check_mark:668 tests passed(2 flakes)