A platform for community discussion. Free, open, simple.
DEV: Automatically turn on irb autocomplete with debugger (#37052)
Martin Brennanc5973a6f0d0d
diff --git a/config/boot.rb b/config/boot.rbindex d8552b2ffb2..155cad7f6cd 100644--- a/config/boot.rb+++ b/config/boot.rb@@ -1,5 +1,8 @@# frozen_string_literal: true+# Enable IRB console with autocompletion in debugger by default+ENV["RUBY_DEBUG_IRB_CONSOLE"] ||= "true" if ENV["RAILS_ENV"] != "production"+if ENV["DISCOURSE_DUMP_HEAP"] == "1"require "objspace"ObjectSpace.trace_object_allocations_start