File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
lib/rails/generators/rails/app/templates Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change
1
+ * Generated Gemfile will include ` require: "debug/prelude" ` for the ` debug ` gem
2
+
3
+ Requiring ` debug ` gem directly automatically activates it, which could introduce
4
+ additional overhead and memory usage even without entering a debugging session.
5
+
6
+ By making Bundler require ` debug/prelude ` instead, developers can keep their access
7
+ to breakpoint methods like ` debugger ` or ` binding.break ` , but the debugger won't be
8
+ activated until a breakpoint is hit.
9
+
10
+ * Stan Lo*
11
+
1
12
* Allow Actionable Errors encountered when running tests to be retried.
2
13
3
14
``` txt
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ gem "bootsnap", require: false
33
33
34
34
group :development, :test do
35
35
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
36
- gem "debug", platforms: %i[ mri <%= bundler_windows_platforms %> ]
36
+ gem "debug", platforms: %i[ mri <%= bundler_windows_platforms %> ], require: "debug/prelude"
37
37
<%- unless options.skip_brakeman? -%>
38
38
39
39
# Static analysis for security vulnerabilities [https://brakemanscanner.org/]
You can’t perform that action at this time.
0 commit comments