是否有一个真正的解决方案来调试应用程序科尔多瓦 [英] Is there a real solution to debug cordova apps

查看:115
本文介绍了是否有一个真正的解决方案来调试应用程序科尔多瓦的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找到了解决办法,请查看我的回答波纹管。

I found a solution, check my answer bellow.

我花的最后两天,试图找出如何调试一个HTML5应用程序,我创建使用科尔多瓦3.2和部署到Android 2.3的设备。所有文章/帖子我已经看到了提供黑客,而不是真正的解决方案:(大部分的时候,他们都不适合我的情况下,调试CSS样式和Angularjs code在我的应用程序。

I spent the last two days trying to figure out how to debug an HTML5 app I created using Cordova 3.2 and deployed to an Android 2.3 device. All the articles/posts I've seen provide hacks rather than real solutions :( and most of the time, none of them works for my case; debug the css styles and the Angularjs code inside my app..

到目前为止,我测试;

So far I tested;

debug.phonegap.com

我注入脚本到 index.html的文件,然后参观了debug.phonegap.com,但没有任何反应生成的URL;只有一个空白页。

I injected the script to the index.html file then visited the generated URL in debug.phonegap.com but nothing happens; only a blank page.

Weinre

大多数我发现点过时Github上库的countain一个JAR文件中的条款。但它不是发现:(

Most of the articles I found point to obsolete Github repository that countain a Jar file.. but it's not found :(

边检查

它的工作原理,并显示该网页我浏览内的移动在PC上。但问题是,它使用了一些其他集成的浏览器(或者仿真器)相比,运行的应用程序的PhoneGap所述一个;这样的结果是不准确的。

It works and shows the webpage I'm browsing on the PC inside the mobile.. But the problem is that it uses some other integrated browser (or emulator) than the one that runs phonegap apps; so the results are not accurate.

Chrome浏览器模拟器

同边检查;它不允许查看随机附带的Andr​​oid 2.3真正的Web-KIT V530。

Same as Edge inspect; it doesn't allow to view real web-kit v530 that is shipped with Android 2.3.

梦想的解决方案

完美的解决方案将是一个延伸至谷歌浏览器(桌​​面),使您能够在桌面浏览器切换到Android 2.3的平台上发现了同样的之一;无仿真没有黑客,仅仅是浏览器本身与网络套件v 530。

The perfect solution would be an extension to Google Chrome (desktop) that enables you to switch the desktop browser to the same one found in Android 2.3 platforms; no emulation no hacks, just the browser itself with web-kit v 530.

不幸的是这种解决方案并不存在:(还是我错了?

Unfortunately such solution doesn't exist :( or I'm wrong?

有什么建议?

推荐答案

我终于得到它的工作!使用weinre和科尔多瓦(没有的PhoneGap构建),并保存障碍为未来的开发者,谁可能会面临同样的问题,我做了一个的 YouTube的教程;)

I finally got it working! using weinre and cordova (no Phonegap build) and to save hassle for future devs, who may face the same problem, I made a YouTube tutorial ;)

这篇关于是否有一个真正的解决方案来调试应用程序科尔多瓦的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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