]> git.openstreetmap.org Git - rails.git/commitdiff
Add debug gem
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Aug 2024 14:36:09 +0000 (15:36 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 14 Aug 2024 14:36:09 +0000 (15:36 +0100)
This is included in new rails 7+ apps, so let's include it too.

This also means it's available on ruby 3.0, and is automatically
updated on newer versions of ruby too.

Gemfile
Gemfile.lock

diff --git a/Gemfile b/Gemfile
index fcf2ceb4d1df6f381344c20479b8aaf45e10b19c..dcdfbe27edf1238e53de61895b6090aba6c19d93 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -180,4 +180,7 @@ end
 
 group :development, :test do
   gem "annotate"
+
+  # See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
+  gem "debug", :require => "debug/prelude"
 end
index 4cb7d0729b63bfd0d3633927f202617f799bd5be..e7ec71569b3e5297ad49db2b2dd3e715f04baaaa 100644 (file)
@@ -170,6 +170,9 @@ GEM
       sprockets-rails
       tilt
     date (3.3.4)
+    debug (1.9.2)
+      irb (~> 1.10)
+      reline (>= 0.3.8)
     debug_inspector (1.2.0)
     deep_merge (1.2.2)
     delayed_job (4.1.11)
@@ -627,6 +630,7 @@ DEPENDENCIES
   connection_pool
   dalli
   dartsass-sprockets
+  debug
   debug_inspector
   delayed_job_active_record
   doorkeeper