Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to get target page in inspect window on MacOS #413

Closed
EzioLi01 opened this issue May 17, 2024 · 5 comments
Closed

Unable to get target page in inspect window on MacOS #413

EzioLi01 opened this issue May 17, 2024 · 5 comments

Comments

@EzioLi01
Copy link

EzioLi01 commented May 17, 2024

Hey experts,

Please check if it's an issue or expected behavior.

Repo steps:

  1. Open app in ios simulator
  2. Start proxy like ios_webkit_debug_proxy -c null:9220,:9223-9322 -s unix:/private/tmp/com.apple.launchd.AdE5als0Ax/com.apple.webinspectord_sim.socket
  3. Open edge or chrome://inspect/#devices
  4. Can get correct target and file in target list, click inspect

Result:
Empty inspect window is displayed

Attach simulator info:

[
    {
        "devtoolsFrontendUrl": "/devtools/devtools.html?ws=localhost:9223/devtools/page/1",
        "faviconUrl": "",
        "thumbnailUrl": "/thumb/file:///Users/ezio/Library/Developer/CoreSimulator/Devices/31B90FF9-20F1-42BA-A848-462996D6F53F/data/Containers/Bundle/Application/37EDF797-19E1-4922-A1D9-EB66ECC3D904/helloCordova4.app/www/index.html",
        "title": "Hello World",
        "url": "file:///Users/ezio/Library/Developer/CoreSimulator/Devices/31B90FF9-20F1-42BA-A848-462996D6F53F/data/Containers/Bundle/Application/37EDF797-19E1-4922-A1D9-EB66ECC3D904/helloCordova4.app/www/index.html",
        "webSocketDebuggerUrl": "ws://localhost:9223/devtools/page/1",
        "appId": "PID:4130"
    }
]
@EzioLi01 EzioLi01 changed the title Unable to click target inspect button on MacOS chrome/edge web inspector Unable to get target page in inspect window May 17, 2024
@EzioLi01
Copy link
Author

EzioLi01 commented May 17, 2024

The inspected file is in .app file, in MacOS it will be recognized as an application package rather than a folder(in Windows). I'm not sure if chrome devtools can attach into ios application content.

In below image, .app package cannot open as folder in devtools source tab on MacOS, but in windows it's working.
Screenshot 2024-05-17 at 15 27 44

@EzioLi01 EzioLi01 changed the title Unable to get target page in inspect window Unable to get target page in inspect window on MacOS May 17, 2024
@artygus
Copy link
Collaborator

artygus commented May 17, 2024

Hi @EzioLi01, please check out this readme section https://github.com/google/ios-webkit-debug-proxy?tab=readme-ov-file#using-with-devtools. Unfortunately newer versions of Chrome DevTools aren't compatible with Safari dev tools protocol, but there are alternatives.

@EzioLi01
Copy link
Author

EzioLi01 commented May 17, 2024

Thanks @artygus for the quick reply, so it means that this should be the knows limitation as expected on chrome devtools?

@artygus
Copy link
Collaborator

artygus commented May 17, 2024

yes, I'd say it's unworkable with chrome dev tools at this point. since you're on mac already, why don't you use safari for inspecting pages? 😅

@EzioLi01
Copy link
Author

yes, I'd say it's unworkable with chrome dev tools at this point. since you're on mac already, why don't you use safari for inspecting pages? 😅

Yes, I've started using it. Thanks for the information! I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants