@@ -439,9 +439,9 @@ def initialize(workspace = nil, input_method = nil)
439
439
@scanner = RubyLex . new ( @context )
440
440
end
441
441
442
- # A hook point for `debug` command's TracePoint after :IRB_EXIT as well as its clean-up
442
+ # A hook point for `debug` command's breakpoint after :IRB_EXIT as well as its clean-up
443
443
def debug_break
444
- # it means the debug command is executed
444
+ # it means the debug integration has been activated
445
445
if defined? ( DEBUGGER__ ) && DEBUGGER__ . respond_to? ( :capture_frames_without_irb )
446
446
# after leaving this initial breakpoint, revert the capture_frames patch
447
447
DEBUGGER__ . singleton_class . send ( :alias_method , :capture_frames , :capture_frames_without_irb )
@@ -547,14 +547,13 @@ def eval_input
547
547
each_top_level_statement do |statement , line_no |
548
548
signal_status ( :IN_EVAL ) do
549
549
begin
550
- # If the integration with debugger is activated, we need to handle certain input differently
550
+ # If the integration with debugger is activated, we return certain input if it should be dealt with by debugger
551
551
if @context . with_debugger && statement . should_be_handled_by_debugger?
552
552
return statement . code
553
553
end
554
554
555
555
@context . evaluate ( statement . evaluable_code , line_no )
556
556
557
- # Don't echo if the line ends with a semicolon
558
557
if @context . echo? && !statement . suppresses_echo?
559
558
if statement . is_assignment?
560
559
if @context . echo_on_assignment?
0 commit comments