diff options
author | Yusuke Endoh <[email protected]> | 2025-06-04 16:44:28 +0900 |
---|---|---|
committer | Yusuke Endoh <[email protected]> | 2025-06-04 19:53:16 +0900 |
commit | caa6ba1a46afa1bc696adc5fe91ee992f9570c89 (patch) | |
tree | 3d4503775c02a1f3e51394360da27babe3cee6f0 /variable.c | |
parent | 8d14d6ea2d9e278a04ebe7e5805221f4cd4cd950 (diff) |
Make `rb_debug_inspector_backtrace_locations` return a raw backtrace
Previously, a user of the debug inspector API was supposed to use
`rb_debug_inspector_backtrace_locations` to get an array of
`Thread::Backtrace::Location`, and then used its index to get more
information from `rb_debug_inspector _frame_binding_get(index)`, etc.
However, `rb_debug_inspector_backtrace_locations` returned an array of
backtraces excluding rescue/ensure frames. On the other hand,
`rb_debug_inspector_frame_binding_get(index)` interprets index with
rescue/ensure frames. This led to inconsistency of the index, and it was
very difficult to correctly use the debug inspector API.
This is a minimal fix for the issue by making
`rb_debug_inspector_backtrace_locations` return a raw backtrace
including rescue/ensure frames.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/13510
Diffstat (limited to 'variable.c')
0 files changed, 0 insertions, 0 deletions