Skip to content

Treat frame.path as nilable in frame filtering - #1161

Merged
st0012 merged 1 commit into
masterfrom
fix-1159
Jan 22, 2026
Merged

st0012 merged 1 commit into
masterfrom
fix-1159

Conversation

@st0012

@st0012 st0012 commented Jan 19, 2026

Copy link
Copy Markdown
Member

Fixes #1159

@st0012 st0012 added the bug Something isn't working label Jan 19, 2026
Comment thread lib/irb/debug.rb
def skip_internal_path?(path)
# The latter can be removed once https://github.com/ruby/debug/issues/866 is resolved
super || path.match?(IRB_DIR) || path.match?('<internal:prelude>')
super || path&.match?(IRB_DIR) || path&.match?('<internal:prelude>')

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean super method defined in ruby/debug also needs this fix?

# debug-1.11.1/lib/debug/thread_client.rb:36
def skip_internal_path?(path)
  path.start_with?(__dir__) || path.delete_prefix('!eval:').start_with?('<internal:')
end

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps but I haven't been able to reproduce the issue in a similar way 🤔

@st0012
st0012 merged commit 8cef3d2 into master Jan 22, 2026
76 of 80 checks passed
@st0012
st0012 deleted the fix-1159 branch January 22, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception when using debugger method

2 participants