console.log not working in an iOS PhoneGap 3.0 app

后端 未结 8 1389
庸人自扰
庸人自扰 2020-12-14 02:00

I am upgrading an app from PhoneGap 1.9 to PhoneGap 3.0. The console.log() function is not working anymore. Previously, the ouput was written in the XCode console. What\'s t

8条回答
  •  攒了一身酷
    2020-12-14 02:45

    I've found JSconsole.com extremely useful for remotely capturing console logs from mobile devices.

    Heres how you set it up:

    1. In you apps index.html, Include(change the ID):

        
      
    2. On your computer, Go to jsconsole.com and type :listen

    Open your app on your mobile device, you will see console logs on your computer.

提交回复
热议问题