We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef639a2 commit 06fb3a2Copy full SHA for 06fb3a2
lib/debug/prelude.rb
@@ -1,7 +1,7 @@
1
# frozen_string_literal: true
2
3
return if ENV['RUBY_DEBUG_ENABLE'] == '0'
4
-return if defined?(::DEBUGGER__)
+return if defined?(::DEBUGGER__::Session)
5
6
# Put the following line in your login script (e.g. ~/.bash_profile) with modified path:
7
#
test/console/debugger_method_test.rb
@@ -208,5 +208,14 @@ def test_prelude_doesnt_override_debugger
208
type "c"
209
end
210
211
+
212
+ def test_require_config_doesnt_cancel_prelude
213
+ run_ruby(program, options: "-Ilib -rdebug/config") do
214
+ assert_line_num(5)
215
+ type "a + b"
216
+ assert_line_text(/120/)
217
+ type "c"
218
+ end
219
220
221
0 commit comments