在Xcode中显示console.log - Cordova App

时间:2021-07-09 16:55:31

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。但是我怎么能用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!

谢谢你的帮助!

1 个解决方案

#1


6  

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控制台中打印日志

#1


6  

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控制台中打印日志