Skip to content

Commit 630b43d

Browse files
committed
🔨 DevEx
1 parent 32ea5fb commit 630b43d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spec/config/byebug.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22
ruby_version = Gem::Version.create(RUBY_VERSION)
33
if ruby_version < Gem::Version.create("2.7")
44
# Use byebug in code
5+
puts "[DEBUG Ruby < 2.7] debug with byebug in code"
56
require "byebug"
67
else
78
# Use binding.break, binding.b, or debugger in code
9+
puts "[DEBUG Ruby >= 2.7] debug with binding.break, binding.b, or debugger in code"
810
require "debug"
911
end
1012
end

0 commit comments

Comments
 (0)