最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Trying to debug Javascript on Mobile Safari but "Enable web inspector on device" grayed out in Desktop Safari

programmeradmin2浏览0评论

Trying to debug a Mobile Safari Javascript bug. Connected the phone to my Mac via USB Lightning cable. Saw the phone show up in the Develop Menu in Desktop Safari.

Selected, 'Use phone for development' but when it switched to "Enable web inspector on device" the option is grayed out.

Found this SO question which is similar but a different issue. Tried disabling Wifi and Bluetooth while phone is connected. Didn't help.

Tried restarting the phone, and Desktop Safari. Didn't help.

Never done this before, am I doing something wrong? Anyone faced this issue?

Trying to debug a Mobile Safari Javascript bug. Connected the phone to my Mac via USB Lightning cable. Saw the phone show up in the Develop Menu in Desktop Safari.

Selected, 'Use phone for development' but when it switched to "Enable web inspector on device" the option is grayed out.

Found this SO question which is similar but a different issue. Tried disabling Wifi and Bluetooth while phone is connected. Didn't help.

Tried restarting the phone, and Desktop Safari. Didn't help.

Never done this before, am I doing something wrong? Anyone faced this issue?

Share Improve this question asked Jul 14, 2022 at 22:15 Joshua DanceJoshua Dance 10.5k4 gold badges79 silver badges83 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 23

Figured it out. To get the gray option to disappear, you need to enable Web Inspector on the actual device.

https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/Safari_Developer_Guide/GettingStarted/GettingStarted.html

Short answer: Settings > Safari > Advanced > Enable Web Inspector

Works great with all the options.

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论