Skip to content

Commit 9d507dc

Browse files
committed
skip if RUBY_DEBUG_ENABLE=0
fix #730
1 parent 6b9eab5 commit 9d507dc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/debug.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# frozen_string_literal: true
22

33
require_relative 'debug/session'
4+
return unless defined?(DEBUGGER__)
45
DEBUGGER__::start no_sigint_hook: true, nonstop: true

lib/debug/prelude.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
return if ENV['RUBY_DEBUG_ENABLE'] == '0'
34
return if defined?(::DEBUGGER__)
45

56
# Put the following line in your login script (e.g. ~/.bash_profile) with modified path:

0 commit comments

Comments
 (0)