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

Safari Web Inspector doesn't debug JavaScript in iOS 7 Simulator - Stack Overflow

programmeradmin0浏览0评论

I have Safari 6.0.5 (8536.30.1) and WebKit nightly (8536.30.1, 538+) and I'm trying to debug a website in iOS 7 iPad simulator ( XCode Version 5.0 (5A1413).

I choose Develop->iPad simulator in Safari, Web Inspector starts showing me the website's resources and DOM, and I enable few breakpoints in JavaScript file of the website. Then I perform something with the site to reach my breakpoints.

The site freezes, as if it reached the breakpoint but Web Inspector doesn't show that it reached anything and doesn't show any variables. I even do not see the variables pane.

What am I doing wrong?

I have Safari 6.0.5 (8536.30.1) and WebKit nightly (8536.30.1, 538+) and I'm trying to debug a website in iOS 7 iPad simulator ( XCode Version 5.0 (5A1413).

I choose Develop->iPad simulator in Safari, Web Inspector starts showing me the website's resources and DOM, and I enable few breakpoints in JavaScript file of the website. Then I perform something with the site to reach my breakpoints.

The site freezes, as if it reached the breakpoint but Web Inspector doesn't show that it reached anything and doesn't show any variables. I even do not see the variables pane.

What am I doing wrong?

Share edited Apr 5, 2016 at 13:14 Hiren Dhamecha 6485 silver badges15 bronze badges asked Oct 8, 2013 at 4:27 AlexanderAlexander 8471 gold badge9 silver badges18 bronze badges 5
  • 4 iOS WebKit debug proxy saved my day! stackoverflow./questions/11361822/… – Alexander Commented Oct 8, 2013 at 9:14
  • My web inspector is simply crashing when trying to view the JS files in there. – TahoeWolverine Commented Nov 11, 2013 at 19:41
  • sometimes i run the location.reload() mand on console, it'll be work. – mrchad Commented Feb 15, 2016 at 21:24
  • As a web developer, you should use Firefox. – StackSlave Commented May 16, 2016 at 4:09
  • 4 @PHPglue you can only inspect website on iDevices from Safari. So using Firefox isn't going to help. – Kevin Kromjong Commented May 17, 2016 at 11:38
Add a ment  | 

1 Answer 1

Reset to default 2

Firstly, Update your browser and secondly open Firefox Inspector and then run your application.

发布评论

评论列表(0)

  1. 暂无评论