Skip to content

Commit 465e4dd

Browse files
josegomezrko1
authored andcommitted
Make UI_ServerBase#puts to behave like STDERR#puts
`UI_ServerBase#greeting` calls `#puts` with no arguments, this breaks reconnections to the debugger.
1 parent 66a5035 commit 465e4dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/debug/server_cdp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ def sock skip: false
684684
yield $stderr
685685
end
686686

687-
def puts result
687+
def puts result=''
688688
# STDERR.puts "puts: #{result}"
689689
# send_event 'output', category: 'stderr', output: "PUTS!!: " + result.to_s
690690
end

0 commit comments

Comments
 (0)