Skip to content

Conversation

@st0012
Copy link
Member

@st0012 st0012 commented Jan 19, 2026

Fixes #1159

@st0012 st0012 added the bug Something isn't working label Jan 19, 2026
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
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

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

3 participants