Is there a way to enable the JavaScript Error/Debug Console for Safari within Android?

后端 未结 6 1114
栀梦
栀梦 2020-11-29 01:41

I\'m developing a JavaScript application that needs to run on the Google Android Phone OS. Is there a way to enable the JavaScript Error/Debug console within Safari on eith

6条回答
  •  难免孤独
    2020-11-29 02:02

    I know your question is about Safari, but you might want to look into using Chrome instead. You can now use Chrome's desktop developer tools to debug and profile apps on your Android device.

    Here's how:

    1. On Android Chrome, go to settings -> Developer tools and check "Enable USB Web debugging"
    2. On the desktop, run adb forward tcp:9222 localabstract:chrome_devtools_remote
    3. Now on Desktop Chrome, navigate to localhost:9222.

    You should see a list of the pages you have open on your phone. Click the one you want to debug/profile.

    Detailed instructions are here

提交回复
热议问题