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

Require debug/prelude in spec helper #2273

Merged
merged 2 commits into from
Mar 20, 2024
Merged

Require debug/prelude in spec helper #2273

merged 2 commits into from
Mar 20, 2024

Commits on Mar 16, 2024

  1. Only require debug when Ruby >= 2.7

    Because the latest debug gem now require Ruby >= 2.7, if we require `debug`
    in older Rubies, it'll require a very outdated debug lib instead.
    st0012 committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    e0df7ba View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

  1. Require debug/prelude instead of debug

    Requiring `debug` activates the debugger even when no breakpoints are hit.
    Although the chance is low, it may slow down the test suite and/or cause
    unexpected behavior.
    
    This change requires `debug/prelude` instead of `debug` to avoid the
    above issue while still allowing the use of breakpoints.
    st0012 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    34c1f19 View commit details
    Browse the repository at this point in the history