当应用程序启动时,如何通过Cordova代码? [英] How do I step through Cordova code when the app starts?

查看:111
本文介绍了当应用程序启动时,如何通过Cordova代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调试Cordova应用程序时,我不断做的是在Chrome的WebInspector中遍历其代码。然而,为了能够做到这一点,我必须等待设备准备在 chrome:// inspect /#devices (然后我可以点击出现的链接为已启动的应用程序)。但如果我这样做,检查员不会停止断点,如果我不够快。

When I debug a Cordova app what I constantly do is step through its code inside Chrome's WebInspector. In order to be able to do this, however, I have to wait for the device to become ready in chrome://inspect/#devices (only then can I click on the appearing link for the started app). But if I do this the inspector will not halt on breakpoints if I am not quick enough. How do experienced Cordova developer tackle this issue?

推荐答案

除了frank的评论,我刚刚发现了GapDebug,它提供即时调试,因此接近我应得的。

Additionally to frank's comment I just found GapDebug which offers instant debug and, thus, comes close to what I deserve.

这篇关于当应用程序启动时,如何通过Cordova代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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