检查cordova应用程序本地存储? [英] Inspect cordova app local storage?

查看:106
本文介绍了检查cordova应用程序本地存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的本​​地存储在我的计算机上的所有浏览器正常工作,但当我将它转换为cordova Android应用程序,它不工作,我不能找到如何检查本地存储在Android设备上。



只要一般检查,就可以看到该设备的本地存储内容是什么。



http://debug.phonegap.com/ 但是无法正常工作。



所以有一种方法来检查代码,当在设备上,我已经使用ADT检查设备上的网页,但我不认为代码是本机的时候工作? p>

在此找到解决方案 Weinre不工作,尝试调试?使用weinre令人惊叹。

解决方案

如果您使用的是设备或模拟器Android版本> 4.4,您可以使用Chrome的检查器在这里访问它。因此,您必须遵循的步骤是:



1-将您的应用程式启动到您的装置



2- Chrome的检查器



3 - 选择您的设备/应用



4-然后您可以像以前一样检查在浏览器中。本地存储空间位于应用程序选项卡


I have local storage working fine on all browsers on my computer, but when I convert it into a cordova android app, it's not working and I can't find how to inspect the local storage on the android device.

Just for general inspecting it would be good to see what is inside the local storage for that device.

I have tried http://debug.phonegap.com/ but that wasn't working.

So is there a way to inspect the code when on the device, I have used the ADT for inspecting web pages on the device but I don't think that works when the code is native?

Found a solution here Weinre not working, trying to debug? use "weinre" its amazing.

解决方案

if you are using a device or emulator with Android version > 4.4 you can access it with Chrome's inspector here. So the steps you have to follow are:

1- launch you app into your device

2- open Chrome's inspector

3-Select you device/app

4- then you can inspect like you used to do in the browser. Local storage is in Application tab

这篇关于检查cordova应用程序本地存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆