admin管理员组文章数量:1332345
I have some content to debug in an iframe.
I cant seem to get Safari developer tool to recognize any scripts in an iframe. Let's say I want to Watch Expressions in the iframe. I add a variable to "Watched Expressions" from the iframe in the scripts tab of Safari Developer tools - yet the values always show up as 'Error'
Using Safari Developer Tools - How do I get the Watched Expressions to work for variables an iframe?
I have some content to debug in an iframe.
I cant seem to get Safari developer tool to recognize any scripts in an iframe. Let's say I want to Watch Expressions in the iframe. I add a variable to "Watched Expressions" from the iframe in the scripts tab of Safari Developer tools - yet the values always show up as 'Error'
Using Safari Developer Tools - How do I get the Watched Expressions to work for variables an iframe?
Share Improve this question edited Jun 10, 2016 at 15:09 meetar 7,6118 gold badges43 silver badges74 bronze badges asked Jun 9, 2013 at 23:44 user1502852user15028525 Answers
Reset to default 1Which version of Safari are you using? I am using its 6.0.4th version. Well even I could not find the option to add watch expressions but at the bottom of the debugging window there is one more down arrow icon near continue script execution icon. Clicking on the icon you will get one console and you can see the value of the expressions you are interested in. Hope this helps you a bit.
Click on the icon in the top right corner of the debugger window (The icon next to "{}" "T" "C"). "Scope Chain" should be selected.
It's March 2015 and the add watch expression feature is not yet present in Safari. Use Google Chrome instead.
Go to Safari -> Develop -> Select the device -> Web inspector will get opens
In the menu tabs close the debugger tab and again open it.
It worked for me, but didn't make any sense.
Open the dev tools
Go to the debugger
(to see your source code/js)
Open the details sidebar (right sidebar) / cmd + alt + 0
In the details sidebar:
choose
Scope chain
click the
+
to add a watchwrite the name of your watch
Done!
本文标签: javascriptsafari developer tools How do I watch expressions from iframeStack Overflow
版权声明:本文标题:javascript - safari developer tools How do I watch expressions from iframe? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742326030a2453743.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论