查看存储的Cookie或在浏览器中进行调试 [英] See stored cookies or debug in browser
问题描述
我制作了一个存储cookie的网页,以记住用户在方案查看器中输入的ID.它适用于IE,Firefox和Chrome的桌面版本.但是,当我尝试使用Android或iPhone来访问它时,则无法正常工作.
I have made a webpage that stores cookies to remember what ID a user has put in a scheme viewer. It works in desktop versions of IE, Firefox and Chrome. But when I try to visit it with Android or iPhone it doesn't work.
我想知道的是如何查看存储的Cookie或调试JavaScript/HTML/CSS.如果我查看台式机Firefox中的错误,那么JavaScript和CSS都不会出错.
What I would like to know is how you see stored cookies or how you debug JavaScript/HTML/CSS. If I look at errors in desktop Firefox I get no errors for JavaScript and CSS.
推荐答案
我建议您使用内置于Android应用程序chrome中的远程调试器.
I recommend you use the remote debugger built into the chrome for android app.
例如
启动 adb
(已启用USB调试)启动chrome,goto设置,开发人员工具,启用远程调试.在命令提示符下的PC上,执行 adb forward tcp:9222 localabstract:chrome_devtools_remote
Start adb
with your phone connected via usb (usb debugging enabled)
Launch chrome, goto settings, developer tools, enable remote debugging.
On your pc in command prompt execute adb forward tcp:9222 localabstract:chrome_devtools_remote
从您的PC导航到localhost:9222,以便通过电话进行实时交互/控制台.
Navigate to localhost:9222 from your pc for live interaction/console from your phone.
来源: https://developers.google.com/chrome-developer-tools/docs/remote-debugging
这篇关于查看存储的Cookie或在浏览器中进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!