【问题标题】:Show console.log in Xcode - Cordova App在 Xcode 中显示 console.log - Cordova 应用程序
【发布时间】:2016-07-02 08:30:22
【问题描述】:

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

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

感谢您的帮助!

【问题讨论】:

    标签: ios xcode cordova debugging console.log


    【解决方案1】:

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

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

    【讨论】:

    • 这个插件不再被使用,因为这个插件提供的功能现在包含在 cordova-ios 4.5.0 或更高版本中,并且支持已经内置到 cordova-windows > 5.0.0 .你应该从你的应用程序中删除这个插件。
    • 我仍然没有看到任何日志
    猜你喜欢
    • 2016-11-02
    • 2023-03-24
    • 1970-01-01
    • 2019-03-17
    • 2014-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多