Skip to content

Commit

Permalink
Change debugger setup
Browse files Browse the repository at this point in the history
  • Loading branch information
flash-gordon committed Dec 25, 2024
1 parent 3fb4e2d commit 0fe0447
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,11 @@
require 'logger'
require 'tempfile'

begin
require ENV['DEBUGGER'] || 'byebug'
[ENV["DEBUGGER"], "byebug", "debug", "pry"].compact.each do |debugger|
require debugger
rescue LoadError
require 'pry'
else
break
end

LOGGER = Logger.new(File.open('./log/test.log', 'a'))
Expand Down

0 comments on commit 0fe0447

Please sign in to comment.