Skip to content

Debug function no longer working with latest version of Chrome #296

Open
@Jell

Description

@Jell

I believe the issue is that the devtoolsFrontendUrl has changed and is now a fully qualified URL of this shape:

https://chrome-devtools-frontend.appspot.com/serve_rev/@0f351bbd2617e0f775543271f34b7d241f8ebcdc/inspector.html?ws=127.0.0.1:59784/devtools/page/1BEAF3B70D21B8A922DB33142416038C

Which leads the debug_url to be incorrect:

http://127.0.0.1:59784https://chrome-devtools-frontend.appspot.com/serve_rev/@0f351bbd2617e0f775543271f34b7d241f8ebcdc/inspector.html?ws=127.0.0.1:59784/devtools/page/33A55C714077D24AFB103C88BE15D12E

I solved it on my end by just returning the devtoolsFrontendUrl as-is:

def debug_url
  response = JSON.parse(Net::HTTP.get(URI(build_remote_debug_url(path: "/json"))))
  devtools_frontend_path = response[0]&.[]("devtoolsFrontendUrl")
  raise "Could not generate debug url for remote debugging session" unless devtools_frontend_path

  devtools_frontend_path
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions