ios - 在 Xcode - Cordova App 中显示 console.log

标签 ios xcode cordova debugging console.log

我的问题是,当我调试我的 cordova-Android-App 时,我可以通过在 chrome 中进行远程调试轻松地做到这一点,并从头开始查看我的 console.log(s)。 但是我如何使用 IOS-cordova-Apps 看到它呢?

我试着用 safari->developer->emulator 查看它。过了一会儿,我可以看到 console.log(s)。但我真的需要查看第一个 console.log(s),但它们没有列在那里。

感谢您的帮助!

最佳答案

试试这个插件:https://github.com/apache/cordova-plugin-console

然后它应该在 xcode 控制台打印日志

关于ios - 在 Xcode - Cordova App 中显示 console.log,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36036042/

相关文章:

ios - 在 SWIFT 2.x 中以编程方式调用带有 NavigationController 的 UIViewController

ios - CoreBluetooth XPC 连接在关闭 View Controller 时无效

c++ - 在 Mac OS X 10.9 和 Xcode 上安装 GMP 库

ios - ld : library not found for -lFirebaseCore clang: error: linker command failed with exit code 1 (use -v to see invocation)

android - 如何在 objective-c 中转换android方法

ios - 我们可以将 C++ 文件添加到 iOS 项目中吗?

ios - Cordova iPhone X 启动图像最初在底部显示白色区域

xcode - 在 Xcode 5 中将帮助包添加到 Mac 应用程序时出现问题

angularjs - Ionic/Apache Cordova - HTTP 请求最佳实践

jQuery Mobile 奇怪的表单行为