Remote console.log() on iOS devices

后端 未结 6 1436
盖世英雄少女心
盖世英雄少女心 2020-12-29 23:18

I am developing a web app that involves touchEvent. It will be much more easier to debug those if I can view the console remotely on my Mac.

Can I make my Mobile Saf

6条回答
  •  旧巷少年郎
    2020-12-30 00:07

    1. plug iphone into computer
    2. settings > safari > advanced > web inspector (turn on)
    3. open safari on your computer
    4. run your web app on your iphone in the safari browser
    5. on your computer in safari, go to develop > inspectable applications, your running app should be in there.

    doing these steps enables the safari debug tools on your desktop to reflect and respond to the connected iphone.

    hope that helps.

提交回复
热议问题