File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1035,6 +1035,12 @@ def eval_input
10351035 @context . evaluate ( statement . code , line_no )
10361036 when Statement ::Command
10371037 ret = statement . command_class . execute ( @context , statement . arg )
1038+ # TODO: Remove this output once we have a better way to handle it
1039+ # This is to notify `debug`'s test framework that the current input has been processed
1040+ # We also need to have a way to restart/stop threads around command execution
1041+ # when being used as `debug`'s console.
1042+ # https://github.com/ruby/debug/blob/master/lib/debug/irb_integration.rb#L8-L13
1043+ puts "INTERNAL_INFO: {}" if @context . with_debugger && ENV [ 'RUBY_DEBUG_TEST_UI' ] == 'terminal'
10381044 @context . set_last_value ( ret )
10391045 end
10401046
You can’t perform that action at this time.
0 commit comments