调试 cordova 应用程序的最佳方法是什么?

What is the best way to debug cordova apps?

我有一个非常大的移动应用程序,应该在 android 和 ios 上运行良好。

我的电脑上有 iphone 和 windows,不是 mac。

当我必须检查我的 android 应用程序时,它很简单,只需使用 chrome://inspect/#devices

哪个很棒(也许有更好的方法?),但我需要用于 iphone 的相同调试工具。

为此需要什么方法?

取决于您要执行的 "debug" 级别。一个相当强大的解决方案是使用 Oracle virtualbox,从 运行 osX 创建一个 VM,然后使用 Safari 模拟一个 iPhone(x),您可以在其中测试您的应用程序苹果生态系统来自。

[这里] 上有一篇非常好的文章。(https://blog.udemy.com/xcode-on-windows/ "XCode on Windows: How to Develop for Mac or iOS on a PC")

最好的方法是购买 mac 并使用 Safari 网络检查器

另一种选择是,如果您使用的是 phonegap 构建,请使用他们的 remote debugging tools