Skip to content

Commit 0f7907a

Browse files
committed
other
1 parent 04f5f16 commit 0f7907a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/debug/server_cdp.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ def run_new_chrome
126126
path = path || '/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome'
127127
dir = Dir.mktmpdir
128128
# The command line flags are based on: https://developer.mozilla.org/en-US/docs/Tools/Remote_Debugging/Chrome_Desktop#connecting.
129-
stdin, stdout, stderr, wait_thr = *Open3.popen3("#{path} --remote-debugging-port=0 --no-first-run --no-default-browser-check --user-data-dir=#{dir}")
129+
# stdin, stdout, stderr, wait_thr = *Open3.popen3("#{path} --remote-debugging-port=0 --no-first-run --no-default-browser-check --user-data-dir=#{dir}")
130+
stdin, stdout, stderr, wait_thr = *Open3.popen3("#{path} --remote-debugging-port=0 --no-first-run --no-default-browser-check")
130131
stdin.close
131132
stdout.close
132133
data = stderr.readpartial 4096

lib/debug/thread_client.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,8 +1256,9 @@ def wait_next_action_
12561256

12571257
def debug_event(ev, args)
12581258
DEBUGGER__.debug{
1259-
args = args.map { |arg| DEBUGGER__.safe_inspect(arg) }
1260-
"#{inspect} sends Event { type: #{ev.inspect}, args: #{args} } to Session"
1259+
# args = args.map { |arg| DEBUGGER__.safe_inspect(arg) }
1260+
# "#{inspect} sends Event { type: #{ev.inspect}, args: #{args} } to Session"
1261+
"#{inspect} sends Event to Session: #{ { type: ev, args: args }.awesome_inspect}"
12611262
}
12621263
end
12631264

0 commit comments

Comments
 (0)