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
1035
1035
@context . evaluate ( statement . code , line_no )
1036
1036
when Statement ::Command
1037
1037
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'
1038
1044
@context . set_last_value ( ret )
1039
1045
end
1040
1046
You can’t perform that action at this time.
0 commit comments