在没有Weinre的情况下调试PhoneGap/Cordova应用程序?可以内置吗? [英] Debugging PhoneGap/Cordova apps without Weinre? Can this get built in?

查看:66
本文介绍了在没有Weinre的情况下调试PhoneGap/Cordova应用程序?可以内置吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以调试Phonegap/Cordova应用?也许是检查员,控制台等?现在,根据我所做的大量研究,它需要Weinre.  为什么?我知道VS2013允许PhoneGap项目 建在里面.  但是,几乎不可能在模拟器中运行该应用程序进行调试,调出控制台,从检查器更改JS,甚至当Windows Phone 8.1设备插入该应用程序时也是如此.  

is there or can there be a way to debug Phonegap/Cordova apps?  Maybe an inspector, console, etc?  Right now, from the massive research I have done, is that it requires Weinre.  Why is this?  I know VS2013 allows PhoneGap projects to be built right inside of it.  But running the app in the simulator is nearly impossible to debug, console out, change JS from an inspector, or even when a Windows Phone 8.1 device is plugged into it.  

这太令人沮丧了.

谢谢.

推荐答案

我们强烈建议升级您的应用程序以使用VS2015.您可以获取VS 2015社区版免费,然后开始调试cordova应用程序.此外,您也可以定位到任何cordova版本.在VS 2015中,您可以使用以下两种方法之一运行和调试应用程序:Ripple,VS 模拟器或Google Android模拟器,即可调试所有代码.简单而高效.

We strongly recommend to upgrade your app to use VS 2015. You can get VS 2015 community edition for free and start debugging cordova apps. also, you can target any cordova version as well. In VS 2015, you can run and debug the app using either: Ripple, VS emulator or Google Android emulator and you are able to debug all your code. easy and efficient. 

您所需要做的就是在VS 2015中使用F9(用于断点)和F10来跟踪代码:)

All what you need is to load your app in VS 2015 with F9 ( for break points) and F10 to trace your code :)

希望这会有所帮助.


这篇关于在没有Weinre的情况下调试PhoneGap/Cordova应用程序?可以内置吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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