Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No lib debug #278

Merged
merged 3 commits into from
Sep 13, 2021
Merged

No lib debug #278

merged 3 commits into from
Sep 13, 2021

Conversation

ko1
Copy link
Collaborator

@ko1 ko1 commented Sep 13, 2021

prevent to load lib/debug.rb

old lib/debug.rb should not be allowed to load.
require 'debug' is needed to update the $LOADED_FEATURE cache
(maybe it is a workaround for the MRI's issue)

fix #275

old lib/debug.rb should not be allowed to load.
`require 'debug'` is needed to update the `$LOADED_FEATURE` cache
(maybe it is a workaround for the MRI's issue)

fix #275
@ko1 ko1 merged commit c6cbe2a into master Sep 13, 2021
@ko1 ko1 deleted the no_lib_deubg branch September 13, 2021 15:51
@@ -23,6 +23,10 @@
require_relative 'breakpoint'
require_relative 'tracer'

# To prevent loading old lib/debug.rb in Ruby 2.6 to 3.0
$LOADED_FEATURES << 'debug.rb'
Copy link
Contributor

Choose a reason for hiding this comment

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

Neat trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

require 'debug' on rdbg without bundle exec will require old lib/debug
2 participants