在 Xcode 中显示 console.log - Cordova App

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36036042/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 08:38:05  来源:igfitidea点击:

Show console.log in Xcode - Cordova App

iosxcodecordovadebuggingconsole.log

提问by Sebi B

My Problem is, that when I'm debugging my cordova-Android-App, I can easily do it with remote debugging in chrome and see my console.log(s) from the beginning. But how can I see that with the IOS-cordova-Apps?

我的问题是,当我调试我的 cordova-Android-App 时,我可以通过 chrome 中的远程调试轻松完成,并从头开始查看我的 console.log(s)。但是我怎么能用 IOS-cordova-Apps 看到呢?

I tried to see it with safari->developer->emulator. After a while I can see the console.log(s). But I really need to see the first console.log(s) and these arent listed there.

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

Thanks for your Help!

感谢您的帮助!

采纳答案by user2529173

Try this plugin: https://github.com/apache/cordova-plugin-console

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

It should print the log in the xcode console then

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