Skip to content

Commit fcb455f

Browse files
committed
no_hint configuration option
It doesn't show any hint on the REPL. fix #538
1 parent 8ae74a2 commit fcb455f

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,7 @@ config set no_color true
474474
* `RUBY_DEBUG_NO_COLOR` (`no_color`): Do not use colorize (default: false)
475475
* `RUBY_DEBUG_NO_SIGINT_HOOK` (`no_sigint_hook`): Do not suspend on SIGINT (default: false)
476476
* `RUBY_DEBUG_NO_RELINE` (`no_reline`): Do not use Reline library (default: false)
477+
* `RUBY_DEBUG_NO_HINT` (`no_hint`): Do not show the hint on the REPL (default: false)
477478

478479
* CONTROL
479480
* `RUBY_DEBUG_SKIP_PATH` (`skip_path`): Skip showing/entering frames for given paths

lib/debug/config.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module DEBUGGER__
1919
no_color: ['RUBY_DEBUG_NO_COLOR', "UI: Do not use colorize", :bool, "false"],
2020
no_sigint_hook: ['RUBY_DEBUG_NO_SIGINT_HOOK', "UI: Do not suspend on SIGINT", :bool, "false"],
2121
no_reline: ['RUBY_DEBUG_NO_RELINE', "UI: Do not use Reline library", :bool, "false"],
22+
no_hint: ['RUBY_DEBUG_NO_HINT', "UI: Do not show the hint on the REPL", :bool, "false"],
2223

2324
# control setting
2425
skip_path: ['RUBY_DEBUG_SKIP_PATH', "CONTROL: Skip showing/entering frames for given paths", :path],

lib/debug/console.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def readline_setup prompt
9898
when :ruby
9999
colorize_code(buff.chomp)
100100
end
101-
end
101+
end unless CONFIG[:no_hint]
102102

103103
yield
104104

0 commit comments

Comments
 (0)