Skip to content

Commit

Permalink
CDP: disable JavaScript engine based autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
ono-max committed Oct 22, 2023
1 parent 4e70b17 commit 95708da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/debug/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ def chrome_setup
DEBUGGER__.warn <<~EOS
With Chrome browser, type the following URL in the address-bar:
devtools://devtools/bundled/inspector.html?v8only=true&panel=sources&ws=#{@local_addr.inspect_sockaddr}/#{@uuid}
devtools://devtools/bundled/inspector.html?v8only=true&panel=sources&noJavaScriptCompletion=true&ws=#{@local_addr.inspect_sockaddr}/#{@uuid}
EOS
end
Expand Down
2 changes: 1 addition & 1 deletion lib/debug/server_cdp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def setup_chrome addr, uuid
ws_client.send sessionId: s_id, id: 5,
method: 'Page.navigate',
params: {
url: "devtools://devtools/bundled/inspector.html?v8only=true&panel=sources&ws=#{addr}/#{uuid}",
url: "devtools://devtools/bundled/inspector.html?v8only=true&panel=sources&noJavaScriptCompletion=true&ws=#{addr}/#{uuid}",
frameId: f_id
}
when 101
Expand Down

0 comments on commit 95708da

Please sign in to comment.