Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
require: "debug/prelude"
after debug
's Gemfile entry
In ruby/debug#797, we found that requiring `debug` automatically activates it, which could introduce runtime overhead and cause memory bloat. And I think many users aren't aware of this and could be taxed by this unnecessarily (e.g. having longer builds on CI). Therefore, I propose to add `require: "debug/prelude"` after `debug`'s Gemfile entry in the default Gemfile template. This way, users can still use breakpoint methods like `debugger`, `binding.break`, and `binding.b`, but the debugger won't be activated until a breakpoint is hit.
- Loading branch information